RosettaCodeData/Task/Program-name/Nim/program-name.nim

4 lines
110 B
Nim

import os
echo getAppFilename() # Prints the full path of the executed file
echo paramStr(0) # Prints argv[0]