首页 新闻 会员 周边

python discover报错“Start directory is not importable: %r' % start_dir”

0
悬赏园豆:80 [待解决问题]

不知道具体问题出在哪,求解

Luafair的主页 Luafair | 初学一级 | 园豆:122
提问于:2018-11-21 10:28
< >
分享
所有回答(2)
0

__init__.py文件加了没有

会长 | 园豆:12401 (专家六级) | 2018-11-21 11:22

有init文件,看图片

支持(0) 反对(0) Luafair | 园豆:122 (初学一级) | 2018-11-21 11:23

@Luafair: 不知道了,搜索了几个答案,不知道你看没:
https://stackoverflow.com/questions/26922501/app-engine-unit-testing-importerror-start-directory-is-not-importable
https://stackoverflow.com/questions/12350907/unittest-importerror

支持(0) 反对(0) 会长 | 园豆:12401 (专家六级) | 2018-11-21 11:24
0

试试用绝对路径 加r

叶先生啊 | 园豆:206 (菜鸟二级) | 2020-12-15 11:19
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册