mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update backup.py
This commit is contained in:
@@ -6,21 +6,22 @@
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import time
|
||||||
|
import yaml
|
||||||
|
|
||||||
if sys.platform != 'darwin':
|
if sys.platform != 'darwin':
|
||||||
os.chdir('/www/server/mdserver-web')
|
os.chdir('/www/server/mdserver-web')
|
||||||
|
|
||||||
|
|
||||||
chdir = os.getcwd()
|
web_dir = os.getcwd() + "/web"
|
||||||
sys.path.append(chdir + '/class/core')
|
if os.path.exists(web_dir):
|
||||||
|
sys.path.append(web_dir)
|
||||||
|
os.chdir(web_dir)
|
||||||
|
|
||||||
|
import core.mw as mw
|
||||||
|
import core.db as db
|
||||||
|
|
||||||
# reload(sys)
|
|
||||||
# sys.setdefaultencoding('utf-8')
|
|
||||||
|
|
||||||
import mw
|
|
||||||
import db
|
|
||||||
import time
|
|
||||||
import yaml
|
|
||||||
|
|
||||||
def getPluginName():
|
def getPluginName():
|
||||||
return 'mongodb'
|
return 'mongodb'
|
||||||
|
|||||||
Reference in New Issue
Block a user