pull/632/head
Mr Chen 6 months ago
parent 14ee45918f
commit d5e2f554f1
  1. 6
      panel_tools.py
  2. 2
      scripts/init.d/mw.tpl

@ -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…
Cancel
Save