在python脚本前面添加代码:
cur_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(cur_path, '../'))
在python脚本前面添加代码:
cur_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(cur_path, '../'))