mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-22 12:34:17 +00:00
py-i2phosts-master: add import workaround
In python-daemon 1.6 they renamed pidlockfile.py to pidfile.py.
This commit is contained in:
parent
4a1d0a1f96
commit
0a77e60e72
@ -11,7 +11,11 @@ import validate
|
|||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
import daemon
|
import daemon
|
||||||
import daemon.pidlockfile
|
# workaround for python-daemon >= 1.6
|
||||||
|
try:
|
||||||
|
import daemon.pidlockfile
|
||||||
|
except ImportError:
|
||||||
|
import daemon.pidfile
|
||||||
|
|
||||||
class Thread(threading.Thread):
|
class Thread(threading.Thread):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user