summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorSkia <skia@libskia.so>2019-06-13 17:16:55 +0200
committerSkia <skia@libskia.so>2019-06-17 15:04:43 +0200
commit4f6a82159ce42299c8666e04f4a4c3d0fe829803 (patch)
tree44f020c1a6974816ebcfb30946e8a5ddfb180dca /run
parentf21a7d33a28f250c4bc920588190e2a206232a25 (diff)
downloadwebsockify-4f6a82159ce42299c8666e04f4a4c3d0fe829803.tar.gz
run: invoke websockify through 'python -m'
Diffstat (limited to 'run')
-rwxr-xr-xrun9
1 files changed, 5 insertions, 4 deletions
diff --git a/run b/run
index 9ea6996..f43f10c 100755
--- a/run
+++ b/run
@@ -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 $@