remove os.chdir(file_path)

os.chdir(file_path) 会导致测试代码无法找到引用的包,暂时先移除。
This commit is contained in:
Falseen 2015-11-01 20:35:01 +08:00
parent 72001556b5
commit fcc7a4cf9b
3 changed files with 0 additions and 3 deletions

View file

@ -28,7 +28,6 @@ if __name__ == '__main__':
import sys
import inspect
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
os.chdir(file_path)
sys.path.insert(0, os.path.join(file_path, '../'))
from shadowsocks import common, lru_cache, eventloop, shell

View file

@ -26,7 +26,6 @@ import signal
if __name__ == '__main__':
import inspect
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
os.chdir(file_path)
sys.path.insert(0, os.path.join(file_path, '../'))
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns

View file

@ -26,7 +26,6 @@ import signal
if __name__ == '__main__':
import inspect
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
os.chdir(file_path)
sys.path.insert(0, os.path.join(file_path, '../'))
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \