Skip to content

Update default value for pythonpath ini option#14212

Open
rajdesai1510 wants to merge 2 commits intopytest-dev:mainfrom
rajdesai1510:rajdesai1510-patch-1
Open

Update default value for pythonpath ini option#14212
rajdesai1510 wants to merge 2 commits intopytest-dev:mainfrom
rajdesai1510:rajdesai1510-patch-1

Conversation

@rajdesai1510
Copy link

Update default value for pythonpath ini option allowing to pass rootdir path for running the pytest command from within a child folder but at the same time able to resolve the path for outside modules by passing the rootdir option. Without this change unable to run pytest for a particular file within the folder if it is importing from outside the cwd, resulting in unable to find the module.

rajdesai1510 and others added 2 commits February 18, 2026 17:40
Update default value for pythonpath ini option allowing to pass rootdir path for running the pytest command from within a child folder but at the same time able to resolve the path for outside modules by passing the rootdir option. Without this change unable to run pytest for a particular file within the folder if it is importing from outside the cwd, resulting in unable to find the module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant