Jump to content

Program name: Difference between revisions

m
promoted to task
m (moved Script name to Program name: task is not limited to scripts)
m (promoted to task)
Line 1:
{{draft task|Basic language learning}}
The task is to programmatically obtain the name used to invoketheinvoke the program. (For example determine whether the user ran "python hello.py", or "python hellocaller.py", a program importing the code from "hello.py".)
 
Sometimes a [[multiline shebang]] is necessary in order to provide the script name to a language's internal ARGV.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.