diff --git a/GNUmakefile b/GNUmakefile index be70750..29842fa 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -61,7 +61,7 @@ u-common: client: -mkdir -p $(BIN_PATH) cp syncplayClient.py $(BIN_PATH)/syncplay - sed -i -e 's%# libpath%site.addsitedir\("${PREFIX}/lib/syncplay"\)%' $(BIN_PATH)/syncplay + sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay chmod 755 $(BIN_PATH)/syncplay cp syncplayClient.py $(LIB_PATH)/syncplay/ cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/ @@ -87,7 +87,7 @@ u-client: server: -mkdir -p $(BIN_PATH) cp syncplayServer.py $(BIN_PATH)/syncplay-server - sed -i -e 's%# libpath%site.addsitedir\("${PREFIX}/lib/syncplay"\)%' $(BIN_PATH)/syncplay-server + sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay-server chmod 755 $(BIN_PATH)/syncplay-server cp syncplayServer.py $(LIB_PATH)/syncplay/ cp resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/ diff --git a/syncplayClient.py b/syncplayClient.py index f73d62c..dad7ac3 100755 --- a/syncplayClient.py +++ b/syncplayClient.py @@ -1,9 +1,6 @@ #!/usr/bin/env python3 import sys -from syncplay.utils import isWindows -if not isWindows(): - import site # libpath diff --git a/syncplayServer.py b/syncplayServer.py index 5081e29..28cfd1b 100755 --- a/syncplayServer.py +++ b/syncplayServer.py @@ -2,9 +2,6 @@ #coding:utf8 import sys -from syncplay.utils import isWindows -if not isWindows(): - import site # libpath