![](/img/trans.png)
[英]What is the difference between a “source folder” and a “pydev package” in PyDev Eclipse?
[英]python: Run coverage on folder with tests in another folder (Eclipse PyDev)
我的python模塊位於文件夾A中,而測試則位於文件夾B中。在Eclipse Pydev中使用coverage時,如何使此設置有效?
嘗試過的事情:
如果您想讓python編譯器知道它們在哪里,您只需將它們的路徑添加到sys.path中,這是您要找的東西嗎?
編輯:嘗試使用類似
sys.path.append(r"C:\path\to\tests")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.