Thankyou for your help,
However both suggestions will only give me that name of the 1st file
executed eg when I use execfile('EA_Owner.py') the name returned when
the __file__ or sys.argv[0] is executed always EA_Owner.py .
The Traceback feature is an excellent resource however the errors I am
trying to follow are not python errors but come from the data I am
manipulating - I cannot remember off-the-top-of-my-head what order each
file is called so I resort to opening the main file to figure it out - it
would be nice if I could write out the name whenever the script runs the I
just look for the name... I do realise I could hardcode the names I was
just looking for a more elegant solution that I can put in all my scripts
identifying which one is executing.
The trace-back feature provides this - can I force an error of sorts that
will not suspend programming but will report the file/module/script that
it is running ??? (Probably a bit dramatic but I am at a loss..)
Regards,
Suzanne Peel
Engineer - Subtransmission Planning, Sydney
EnergyAustralia
____________________________________
Level 3, 570 George St, Sydney NSW 2000
T. 612 9269 4659 (Extn 34659)
F. 612 9269 4690 (Extn 34690)
[EMAIL PROTECTED]
____________________________________
----------------------------------------------------------------------------------------
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.
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor