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:
Pierre Ossman 2020-12-04 13:55:58 +01:00
parent 4c2edaabc2
commit e80739b296
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ class WebSocketProxy(websockifyserver.WebSockifyServer):
wsdir = os.path.dirname(sys.argv[0])
rebinder_path = [os.path.join(wsdir, "..", "lib"),
os.path.join(wsdir, "..", "lib", "websockify"),
os.path.join(wsdir, ".."),
wsdir]
self.rebinder = None