Fix #97: rebind.so not found when installed

This should fix the upstream Debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719889
This commit is contained in:
Joel Martin 2013-09-27 07:42:57 -05:00
parent ab389d4e71
commit f30ad05c70
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ Traffic Legend:
self.wrap_times = [0, 0, 0]
if self.wrap_cmd:
rebinder_path = ['./', os.path.dirname(sys.argv[0])]
wsdir = os.path.dirname(sys.argv[0])
rebinder_path = [os.path.join(wsdir, "..", "lib"),
os.path.join(wsdir, "..", "lib", "websockify"),
wsdir]
self.rebinder = None
for rdir in rebinder_path: