From 4f6a82159ce42299c8666e04f4a4c3d0fe829803 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 13 Jun 2019 17:16:55 +0200 Subject: [PATCH] run: invoke websockify through 'python -m' --- run | 9 +++++---- 1 file 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 $@