From a01df660f2589d5fe299015ad8a464c92e456a70 Mon Sep 17 00:00:00 2001 From: cheungchan <1377699408@qq.com> Date: Sun, 23 Jul 2017 17:37:47 +0800 Subject: [PATCH] fix no module named shadowsocks error in asyncdns --- shadowsocks/asyncdns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index fa5be41..af3f9a2 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -23,7 +23,8 @@ import socket import struct import re import logging - +import sys +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../')) from shadowsocks import common, lru_cache, eventloop, shell