pull/632/head
Mr Chen 6 months ago
parent b0392b7cf1
commit beb6dd874a
  1. 12
      plugins/php-apt/index.py
  2. 14
      plugins/php-apt/index_php_apt.py
  3. 12
      plugins/php-yum/index.py
  4. 14
      plugins/php-yum/index_php_yum.py
  5. 12
      plugins/php/index.py
  6. 17
      plugins/php/index_php.py

@ -9,14 +9,12 @@ import json
import shutil import shutil
sys.path.append(os.getcwd() + "/class/core") web_dir = os.getcwd() + "/web"
import mw if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
if mw.isAppleSystem(): import core.mw as mw
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)
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

@ -8,14 +8,12 @@ import re
import json import json
import shutil import shutil
# reload(sys) web_dir = os.getcwd() + "/web"
# sys.setdefaultencoding('utf8') if os.path.exists(web_dir):
sys.path.append(web_dir)
try: os.chdir(web_dir)
sys.path.append(os.getcwd() + "/class/core")
import mw import core.mw as mw
except Exception as e:
import core.mw as mw
if mw.isAppleSystem(): if mw.isAppleSystem():
cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\'' cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\''

@ -9,14 +9,12 @@ import json
import shutil import shutil
sys.path.append(os.getcwd() + "/class/core") web_dir = os.getcwd() + "/web"
import mw if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
if mw.isAppleSystem(): import core.mw as mw
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)
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

@ -8,14 +8,12 @@ import re
import json import json
import shutil import shutil
# reload(sys) web_dir = os.getcwd() + "/web"
# sys.setdefaultencoding('utf8') if os.path.exists(web_dir):
sys.path.append(web_dir)
try: os.chdir(web_dir)
sys.path.append(os.getcwd() + "/class/core")
import mw import core.mw as mw
except Exception as e:
import core.mw as mw
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

@ -11,14 +11,12 @@ import shutil
# reload(sys) # reload(sys)
# sys.setdefaultencoding('utf8') # sys.setdefaultencoding('utf8')
sys.path.append(os.getcwd() + "/class/core") web_dir = os.getcwd() + "/web"
import mw if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
if mw.isAppleSystem(): import core.mw as mw
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)
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

@ -8,19 +8,12 @@ import re
import json import json
import shutil import shutil
# reload(sys) web_dir = os.getcwd() + "/web"
# sys.setdefaultencoding('utf8') if os.path.exists(web_dir):
try: sys.path.append(web_dir)
sys.path.append(os.getcwd() + "/class/core") os.chdir(web_dir)
import mw
except Exception as e:
import core.mw as mw
if mw.isAppleSystem(): import core.mw as mw
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)
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

Loading…
Cancel
Save