This commit is contained in:
midoks
2019-01-11 01:09:23 +08:00
parent 7257306b25
commit 6848a83e47
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ def initDreplace():
ddir = getServerDir() + '/workers'
if not os.path.exists(ddir):
sdir = getPluginDir() + '/workers'
print public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
file_tpl = getInitDTpl()
service_path = os.path.dirname(os.getcwd())
+3 -1
View File
@@ -25,11 +25,13 @@ from threading import Timer, Thread
from time import sleep
from collections import deque
from Queue import Queue
from configparser import ConfigParser
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.append('/usr/local/lib/python2.7/site-packages')
from configparser import ConfigParser
import pygeoip
import MySQLdb as mdb
try: