getting the script name - ActiveScripting

Gavin Tomlins GavinT at
Thu Oct 31 00:44:16 CET 2002

Hi Henk,

One problem we have is that we haven't been able to access variables of the
host application. I was wondering if you have managed to achieve this within
your development. My understanding is that, if the scriptinterpreter comes
across a variable it doesn't understand it fires it to the ActiveScript
engine and the registered engine eg. Python for further interpretation, if
nothing is found then it returns an error. Is this your experience? We have
been testing this using ActiveState Python but have had limited success. 

If you could possible share your experiences or any references, it would be



-----Original Message-----
From: Henk [mailto:Henk]
Sent: Wednesday, 9 October 2002 7:42 PM
To: python-list at
Subject: Re: getting the script name

On Wed, 09 Oct 2002 09:28:17 GMT, Padraig Brady <Padraig at>

>Henk wrote:
>> Hi,
>> Is there any way to retrieve the name of the running script from
>> within this running script?
>import sys


However, I need to refine my question: my script is launched from
within a C++ app (using IActiveScriptingEngine and that kind of
stuff). Using your solution gives me the exe, not the script name. Any




Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.

This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.

More information about the Python-list mailing list