Kyle Burton Kyle Burton -4 years ago 129
Python Question

Python Library Path

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?

Answer Source

I think you're looking for sys.path

import sys
print (sys.path)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download