|
@ -24,12 +24,10 @@ import logging |
|
|
import signal |
|
|
import signal |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
try: |
|
|
import inspect |
|
|
os.chdir(os.path.dirname(os.path.realpath(__file__))) |
|
|
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe()))) |
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../')) |
|
|
os.chdir(file_path) |
|
|
except: |
|
|
sys.path.insert(0, os.path.join(file_path, '../')) |
|
|
os.chdir(os.path.dirname(sys.path[0])) |
|
|
|
|
|
sys.path.insert(0, os.path.join(sys.path[0], '../')) |
|
|
|
|
|
|
|
|
|
|
|
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns |
|
|
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns |
|
|
|
|
|
|
|
|