update
This commit is contained in:
parent
14ee45918f
commit
d5e2f554f1
|
|
@ -23,14 +23,10 @@ web_dir = os.getcwd() + "/web"
|
|||
os.chdir(web_dir)
|
||||
sys.path.append(web_dir)
|
||||
|
||||
from admin import model
|
||||
import core.mw as mw
|
||||
import core.db as db
|
||||
|
||||
# cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\''
|
||||
# info = mw.execShell(cmd)
|
||||
# p = "/usr/local/lib/" + info[0].strip() + "/site-packages"
|
||||
# sys.path.append(p)
|
||||
|
||||
INIT_DIR = "/etc/rc.d/init.d"
|
||||
if mw.isAppleSystem():
|
||||
INIT_DIR = mw.getPanelDir() + "/scripts/init.d"
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@ PANEL_DIR={$SERVER_PATH}
|
|||
ROOT_PATH=$(dirname "$PANEL_DIR")
|
||||
PATH=$PATH:${PANEL_DIR}/bin
|
||||
|
||||
echo ${PANEL_DIR}
|
||||
|
||||
|
||||
if [ -f ${PANEL_DIR}/bin/activate ];then
|
||||
source ${PANEL_DIR}/bin/activate
|
||||
|
|
|
|||
Loading…
Reference in New Issue