update shared path, add unrar
This commit is contained in:
parent
8fdda01d4d
commit
3ec0930f52
3 changed files with 11 additions and 1 deletions
8
ctl
8
ctl
|
@ -37,7 +37,7 @@ if [ ! -e "$PID" ]; then
|
|||
fi
|
||||
|
||||
PLATFORM_PYTHON=3.4
|
||||
SHARED_PYTHON=3.4
|
||||
SHARED_PYTHON=3.7
|
||||
if [ -e "$BASE/platform_local" ]; then
|
||||
export PLATFORM_ENV="$BASE/platform_local"
|
||||
else
|
||||
|
@ -56,10 +56,16 @@ else
|
|||
ARCH="_armv7l"
|
||||
fi
|
||||
PLATFORM="linux$ARCH"
|
||||
if [ -e $BASE/platform_${PLATFORM}/lib/libunrar.so ]; then
|
||||
export UNRAR_LIB_PATH="$BASE/platform_${PLATFORM}/lib/libunrar.so"
|
||||
fi
|
||||
fi
|
||||
if [ $SYSTEM == "Darwin" ]; then
|
||||
PLATFORM="darwin64"
|
||||
PLATFORM_PYTHON=3.7
|
||||
if [ -e $BASE/platform_${PLATFORM}/lib/libunrar.dylib ]; then
|
||||
export UNRAR_LIB_PATH="$BASE/platform_${PLATFORM}/lib/libunrar.dylib"
|
||||
fi
|
||||
fi
|
||||
export PLATFORM_ENV="$BASE/platform_${PLATFORM}"
|
||||
fi
|
||||
|
|
|
@ -17,6 +17,9 @@ if sys.platform == 'win32':
|
|||
site.addsitedir(site_packages)
|
||||
sys.path.append(join(base, 'platform_win32'))
|
||||
os.environ['oxCACHE'] = join(base, 'data', 'ox')
|
||||
unrar_dll = join(base, 'platform_win32', 'unrar.dll')
|
||||
if os.path.exists(unrar_dll):
|
||||
os.environ['UNRAR_LIB_PATH'] = unrar_dll
|
||||
|
||||
import api
|
||||
import commands
|
||||
|
|
|
@ -10,3 +10,4 @@ pysocks
|
|||
stem
|
||||
sqlitedict==1.6.0
|
||||
zeroconf
|
||||
unrar
|
||||
|
|
Loading…
Reference in a new issue