Python port of ShadowsocksR
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
627 B

10 years ago
#!/usr/bin/python
import time
import sys
import threading
import os
os.chdir(os.path.dirname(os.path.realpath(__file__)))
import server_pool
import db_transfer
from shadowsocks import shell
#def test():
10 years ago
# thread.start_new_thread(DbTransfer.thread_db, ())
# Api.web_server()
class MainThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
db_transfer.DbTransfer.thread_db()
def main():
shell.check_python()
if True:
db_transfer.DbTransfer.thread_db()
else:
thread = MainThread()
thread.start()
while True:
time.sleep(99999)
if __name__ == '__main__':
main()