Re: Function to retrieve running script
Harlin Seritt <harlinseritt@xxxxxxxxx> wrote:
> Is there a function that allows one to get the name of the same script
> running returned as a string?
Something like:
import sys
def f():
return sys.modules['__main__'].__file__
might help.
Alex
.
Relevant Pages
- Re: Updating registry keys for Internet Explorer bombs-out
... It looks like the problem is the lack of quotes ... string values. ... > I have a script that I am updating Internet Explorer settings for the ... Prev by Date: ... (microsoft.public.scripting.vbscript) - Function to retrieve running script
... Is there a function that allows one to get the name of the same script ... running returned as a string? ... Harlin Seritt ... Prev by Date: ... (comp.lang.python) - How can I create a global variable?
... I have two vbScripts. ... String, so that ... I can read this variable in a other script - msgBox glVariable. ... Prev by Date: ... (microsoft.public.scripting.vbscript) - "Type mismatch" error in JScript - newby question
... I'm trying to create a simple text file that will allow a string of text to ... The script firstly creates the text file, ... to then open that file for writing into it, I keep on getting a "type ... Prev by Date: ... (microsoft.public.scripting.jscript) - Re: How to rewrite with awk?
... > I'm unfamiliar with tools such as sed & awk. ... Extract the string that matches a RE. ... This script will not only expand all the lines that say "include ... file) and not resetting ARGV(the tmp file), it then lets awk do any ... (comp.unix.shell) |
|