fixing path bug, supporting python 3.8 for old server
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user