Why doesn't my current directory show up in the path using pytest on Windows?
问题 I have the following folder structure; myapp\ myapp\ __init__.py tests\ test_ecprime.py and my pwd is C:\Users\wwerner\programming\myapp\ I have the following test setup: import pytest import sys import pprint def test_cool(): pprint.pprint(sys.path) assert False That produces the following paths: ['C:\\Users\\wwerner\\programming\\myapp\\tests', 'C:\\Users\\wwerner\\programming\\envs\\myapp\\Scripts', 'C:\\Windows\\system32\\python34.zip', 'C:\\Python34\\DLLs', 'C:\\Python34\\lib', 'C:\