In ruby the library path is provided in $", in perl it's in @INC - how do you get the list of paths that Python searches for modules when you do an import?
+8
A:
You can also make additions to this path with the PYTHONPATH environment variable at runtime, in addition to:
import path
sys.path.append('/home/user/python-libs')
Andrew Gwozdziewycz
2008-09-25 19:02:46