mirror of https://github.com/Syncplay/syncplay
Import site in makefile
This commit is contained in:
parent
1163896951
commit
d3021a0e98
|
@ -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)/
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
from syncplay.utils import isWindows
|
||||
if not isWindows():
|
||||
import site
|
||||
|
||||
# libpath
|
||||
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
#coding:utf8
|
||||
|
||||
import sys
|
||||
from syncplay.utils import isWindows
|
||||
if not isWindows():
|
||||
import site
|
||||
|
||||
# libpath
|
||||
|
||||
|
|
Loading…
Reference in New Issue