remove os.chdir(file_path)
os.chdir(file_path) 会导致测试代码无法找到引用的包,暂时先移除。
This commit is contained in:
parent
72001556b5
commit
fcc7a4cf9b
3 changed files with 0 additions and 3 deletions
|
@ -28,7 +28,6 @@ if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
import inspect
|
import inspect
|
||||||
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
|
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, '../'))
|
sys.path.insert(0, os.path.join(file_path, '../'))
|
||||||
|
|
||||||
from shadowsocks import common, lru_cache, eventloop, shell
|
from shadowsocks import common, lru_cache, eventloop, shell
|
||||||
|
|
|
@ -26,7 +26,6 @@ import signal
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import inspect
|
import inspect
|
||||||
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
|
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, '../'))
|
sys.path.insert(0, os.path.join(file_path, '../'))
|
||||||
|
|
||||||
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns
|
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns
|
||||||
|
|
|
@ -26,7 +26,6 @@ import signal
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import inspect
|
import inspect
|
||||||
file_path = os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))
|
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, '../'))
|
sys.path.insert(0, os.path.join(file_path, '../'))
|
||||||
|
|
||||||
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \
|
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue