How to get python library path ( not sys.executable )?

You can try to load the module and after check for it's file attribute to get the path of the . Pyc file.

You can try to load the module and after check for it's __file__ attribute to get the path of the . Pyc file. For example like this: import MODULE, os path = os.path.

Dirname(MODULE. __file__) Regards, HTH!

That's what I needed! Thanks! – Intelligent-Infrastructure Feb 15 at 12:22 You are welcome :) – SubniC Feb 15 at 12:23.

What you're looking for is sys. Path: >>> import sys >>> sys. Path '', '/usr/lib/python2.7/site-packages/virtualenvwrapper.

Github-0.1-py2.7. Egg', '/usr/lib/python2.7/site-packages/pycharm-debug. Egg', '/usr/lib/python2.7/site-packages/Fom-0.9.2-py2.7.Egg', '/usr/lib/python2.7/site-packages/blinker-1.1-py2.7. Egg', '/usr/lib/python2.7/site-packages/httplib2-0.6.0-py2.7. Egg', '/usr/lib/python27. Zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/Numeric', '/usr/lib/python2.7/site-packages/PIL', '/usr/lib/python2.7/site-packages/gst-0.10', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11.

Egg-info', '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode'.

– Intelligent-Infrastructure Feb 15 at 15:04 >in this tuple - it's a list – warvariuc Feb 15 at 19:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions