1
0
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:
Hidden Z 2013-09-22 14:51:23 +00:00
parent 4a1d0a1f96
commit 0a77e60e72

View File

@ -11,7 +11,11 @@ import validate
import subprocess
import threading
import daemon
import daemon.pidlockfile
# workaround for python-daemon >= 1.6
try:
import daemon.pidlockfile
except ImportError:
import daemon.pidfile
class Thread(threading.Thread):