Importing different versions of a module

henning.vonbargen at arcor.de henning.vonbargen at arcor.de
Tue Jul 29 03:00:43 EDT 2008


Why not set up PYTHONPATH together with other environment variables in
a shell script (bash, or CMD on Windows) and call that shell script
instead of your Python script directly?

This is probably the easiest and still a very powerful and generic
solution for this kind of problem. We do it that way regardless of the
programming language used.

Henning



More information about the Python-list mailing list