Import site in makefile

This commit is contained in:
Ricardo Constantino 2018-07-28 22:10:41 +01:00 committed by Etoh
parent 1163896951
commit d3021a0e98
3 changed files with 2 additions and 8 deletions

View File

@ -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)/

View File

@ -1,9 +1,6 @@
#!/usr/bin/env python3
import sys
from syncplay.utils import isWindows
if not isWindows():
import site
# libpath

View File

@ -2,9 +2,6 @@
#coding:utf8
import sys
from syncplay.utils import isWindows
if not isWindows():
import site
# libpath