Top "Pythonpath" questions

PYTHONPATH is an environment variable that can be used to augment the default search path for module imports in Python.

"RuntimeError: working outside of application context" when unit testing with py.test

I'm trying to migrate to py.test for the ease of use and auto-discovery of tests. When I run my …

python unit-testing flask pytest pythonpath
How to append multiple Paths to PYTHONPATH programmatically

I have 4 directories: /home/user/test1 /home/user/test2 /home/user/test3 /home/user/test4 I have another directory with …

python path pythonpath
Setting up pythonpath in OS X

A new PHP developer here trying to learn Python/Django using the "Tango With Django" tutorial. I'm up to section 2.2.2 …

python django pythonpath
How is the python module search path determined on Mac OS X?

When a non built-in module is imported, the interpreter searches in the locations given by sys.path. sys.path is …

python macos pythonpath sys.path
Customize module search path (PYTHONPATH) via pipenv

I have a Python project consisting of a Jupyter notebook, several scripts in a bin directory and modules in a …

python python-3.x pythonpath pipenv
How to prepend a path to sys.path in Python?

Problem description: Using pip, I upgraded to the latest version of requests (version 2.7.0, with pip show requests giving the location /…

python ubuntu pip easy-install pythonpath
Module name different than directory name?

Let's assume I have a python package called bestpackage. Convention dictates that bestpacakge would also be a directory on sys.…

python pythonpath
Python 2.x multiple version issues regarding PYTHONPATH

There's Python 2.6 installed in the system. Now I want to use modules introduced in Python 2.7. Because I have no root …

python python-2.x pythonpath
Python: sharing common code among a family of scripts

I'm writing a family of Python scripts within a project; each script is within a subdirectory of the project, like …

python python-module pythonpath
WSGIPythonPath is not working

I am deploying my web.py application on Apache2 with mod_wsgi. Here is my virt_host file, WSGIPythonPath /home/…

python apache2 mod-wsgi pythonpath