|
|
@ -8,7 +8,6 @@ import re |
|
|
|
import json |
|
|
|
import json |
|
|
|
import io |
|
|
|
import io |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
web_dir = os.getcwd() + "/web" |
|
|
|
web_dir = os.getcwd() + "/web" |
|
|
|
if os.path.exists(web_dir): |
|
|
|
if os.path.exists(web_dir): |
|
|
|
sys.path.append(web_dir) |
|
|
|
sys.path.append(web_dir) |
|
|
@ -16,6 +15,12 @@ if os.path.exists(web_dir): |
|
|
|
|
|
|
|
|
|
|
|
import core.mw as mw |
|
|
|
import core.mw as mw |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gd_dir = mw.getServerDir() +'/gdrive/lib' |
|
|
|
|
|
|
|
cmd = 'ls '+gd_dir+' | grep python | cut -d \\ -f 1 | awk \'END {print}\'' |
|
|
|
|
|
|
|
info = mw.execShell(cmd) |
|
|
|
|
|
|
|
p = gd_dir +'/'+ info[0].strip() + "/site-packages" |
|
|
|
|
|
|
|
sys.path.append(p) |
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------- |
|
|
|
# ----------------------------- |
|
|
|
import google.oauth2.credentials |
|
|
|
import google.oauth2.credentials |
|
|
|
import google_auth_oauthlib.flow |
|
|
|
import google_auth_oauthlib.flow |
|
|
|