[Tutor] A simple Question...

Suzanne Peel speel at energy.com.au
Tue Oct 2 03:31:41 CEST 2007


Hi,

I have a very simple question that I cannot find the answer to ... if I 
knew the correct question to ask it would be simple.

I am trying to find the name of the file I am currently running (please 
don't laugh at me I know it's simple but I cannot figure it out).

I want to know where my errors are occurring so if I print out the name of 
the file (or script) when it starts that should help me 

I have tried os.listpath os.path and get lists of files and directories 
but no matter how much searching (through Python help and Dive into 
python) I cannot figure out how to find the current file name.

Any help will be more than welcome!!!

Suzanne

----------------------------------------------------------------------------------------
This e-mail may contain confidential or privileged information.   If you have received it in error, please notify the sender immediately via return e-mail and then delete the original e-mail. EnergyAustralia has collected your business contact details for dealing with you in your business capacity. More information about how we handle your personal information, including your right of access is contained at http://www.energy.com.au.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071002/980e43bb/attachment.htm 


More information about the Tutor mailing list