Program name: Difference between revisions

Content added Content deleted
Line 1:
{{draft task|Basic language learning}}
ItThe istask usefulis to programmatically accessobtain a program'sthe name, e.gused to invokethe program. for(For example determiningdetermine 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.
Line 565:
 
{{omit from|ZX Spectrum Basic}}
 
[[Category:Initialization]]