Browse Source

py-i2phosts-master: add import workaround

In python-daemon 1.6 they renamed pidlockfile.py to pidfile.py.
pull/1/head
Hidden Z 11 years ago
parent
commit
0a77e60e72
  1. 6
      bin/py-i2phosts-master

6
bin/py-i2phosts-master

@ -11,7 +11,11 @@ import validate @@ -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):

Loading…
Cancel
Save