From 5033ddde6e02d4db97b7124ca0935a8117b08a67 Mon Sep 17 00:00:00 2001 From: evilchili Date: Fri, 1 Mar 2024 16:02:30 -0800 Subject: [PATCH] fixing path bug, supporting python 3.8 for old server --- croaker/pidfile.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/croaker/pidfile.py b/croaker/pidfile.py index 4ff4663..3f66943 100644 --- a/croaker/pidfile.py +++ b/croaker/pidfile.py @@ -7,7 +7,7 @@ from daemon import pidfile as _pidfile def pidfile(pidfile_path: Path, terminate_if_running: bool = True): - pf = _pidfile.TimeoutPIDLockFile(pidfile_path, 30) + pf = _pidfile.TimeoutPIDLockFile(str(pidfile_path.expanduser()), 30) pid = pf.read_pid() if pid and terminate_if_running: try: diff --git a/pyproject.toml b/pyproject.toml index 1750b43..a98af9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "croaker" -version = "0.1.0" +version = "0.1.1" description = "" authors = ["evilchili "] readme = "README.md" @@ -9,7 +9,7 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.10" +python = "^3.8" prompt-toolkit = "^3.0.38" typer = "^0.9.0" python-dotenv = "^0.21.0"