Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 python 模块在文件夹 A 中,但我的测试在文件夹 B 中。在 Eclipse Pydev 中使用覆盖率时,如何使此设置正常工作?
尝试的事情:
如果你想让 python 编译器知道它们在哪里,你可以简单地将它们的路径添加到 sys.path,这就是你要找的吗?
链接到 python 文档中的 sys.path
编辑: 尝试使用类似的东西
sys.path.append(r"C:\path\to\tests")