run: invoke websockify through 'python -m'

This commit is contained in:
Skia 2019-06-13 17:16:55 +02:00
parent f21a7d33a2
commit 4f6a82159c
1 changed files with 5 additions and 4 deletions

9
run
View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
#!/usr/bin/env sh
import websockify
BASE_DIR="$(dirname "$(realpath "$0")")"
if __name__ == '__main__':
websockify.websocketproxy.websockify_init()
cd "$BASE_DIR"
python -m websockify $@