diff options
author | Skia <skia@libskia.so> | 2019-06-13 17:16:55 +0200 |
---|---|---|
committer | Skia <skia@libskia.so> | 2019-06-17 15:04:43 +0200 |
commit | 4f6a82159ce42299c8666e04f4a4c3d0fe829803 (patch) | |
tree | 44f020c1a6974816ebcfb30946e8a5ddfb180dca /run | |
parent | f21a7d33a28f250c4bc920588190e2a206232a25 (diff) | |
download | websockify-4f6a82159ce42299c8666e04f4a4c3d0fe829803.tar.gz |
run: invoke websockify through 'python -m'
Diffstat (limited to 'run')
-rwxr-xr-x | run | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 $@ |