Tuesday, June 16, 2015

Module Path in Python

Hello fellas,

Lost in your build? Too many env variables? No idea what calls which, and need to see the implementation in a specific module, at god knows where?

>> import <module_name>         
>> print <module_name>.__file__ 

is what you need: the abs path of the module. Cheers!

No comments:

Post a Comment