Snippets tagged “pythonpath”
2 snippets use this tag.
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?Python
In Windows, you can add to the PYTHONPATH environment variable to make sure that Python can find your modules and packages.
- Importing modules from parent folderPython
In Python, you can use the sys.path.append() method to add the parent directory to the list of paths where Python looks for modules.