Add more search paths for rebind.so
If we're run as a module then sys.argv[0] will be the main module, not some startup script.
This commit is contained in:
parent
4c2edaabc2
commit
e80739b296
|
@ -293,6 +293,7 @@ class WebSocketProxy(websockifyserver.WebSockifyServer):
|
||||||
wsdir = os.path.dirname(sys.argv[0])
|
wsdir = os.path.dirname(sys.argv[0])
|
||||||
rebinder_path = [os.path.join(wsdir, "..", "lib"),
|
rebinder_path = [os.path.join(wsdir, "..", "lib"),
|
||||||
os.path.join(wsdir, "..", "lib", "websockify"),
|
os.path.join(wsdir, "..", "lib", "websockify"),
|
||||||
|
os.path.join(wsdir, ".."),
|
||||||
wsdir]
|
wsdir]
|
||||||
self.rebinder = None
|
self.rebinder = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue