fixing path bug, supporting python 3.8 for old server

This commit is contained in:
evilchili 2024-03-01 16:02:30 -08:00
parent 3288d71c91
commit 5033ddde6e
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "croaker"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["evilchili <evilchili@gmail.com>"]
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"