> > From: Jerry LeVan <[EMAIL PROTECTED]>
> To: pythonmac-sig@python.org
> Date: Wed, 24 May 2006 15:39:48 -0400
> Subject: [Pythonmac-SIG] WhereAmI ?

> I can easily pick up modules living in Resources, but
> I can't see how to find pure "data" files living  in the
> the Resources folder.
> 

Jerry, your current directory can be found from getting the full path
to the running module:
whereami = os.path.abspath(os.path.dirname(__file__))

HTH
S

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to