[BangPypers] Module question

Heshan Suriyaarachchi heshan.suri at gmail.com
Tue Sep 2 07:15:58 CEST 2008


Hi,
    One of my scripts returns a module like below.
<module 'annotationScript' from
'/home/heshan/repo/scripts/annotationScript.py'>
     What I need to do is to extract the full path of the location of the
script as string. i.e. '/home/heshan/repo/scripts/annotationScript.py' .
Since I am dynamically loading the script, it's name and full path may vary.
Can you suggest me a mechanism to extract the full path from the above data
structure.
-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20080902/b7613597/attachment.htm>


More information about the BangPypers mailing list