[BangPypers] Module question
Heshan Suriyaarachchi
heshan.suri at gmail.com
Tue Sep 2 07:31:55 CEST 2008
Hi,
What I need to do is somehow extract the 4th item of the below data
structre. i.e. the full path
<module 'annotationScript' from
'/home/heshan/repo/scripts/annotationScript.py'>
Hi,
> __path__ attribute of module contains the path of file.
> >>> import lastfm
> >>> lastfm.__path__
> ['c:\\python25\\lib\\site-packages\\lastfm-0.1-py2.5.egg\\lastfm']
>
> I hope it helps.
> Cheers,
>
> --
> Abhinav Sarkar
> Fair Isaac India
>
>
>
--
Regards,
Heshan Suriyaarachchi
http://heshans.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20080902/61f6fb13/attachment.htm>
More information about the BangPypers
mailing list