I meant using os.path.dirName on arg_val(0) sorry
Hello,
Maybe using on arg_val(0) could help:
bash-3.2$ cat GSPRP.4gl
Import os
main
define GeneroVMArgument, StartupPath String
let GeneroVMArgument = arg_val(0)
let StartupPath = os.path.dirName(GeneroVMArgument)
display "Startup Path of the current Running Program : " || StartupPath
end main
bash-3.2$ fglrun /Users/laurent/Desktop/TMP/GettingStartupPathRunningProgram/GSPRP.42r
Startup Path of the current Running Program : /Users/laurent/Desktop/TMP/GettingStartupPathRunningProgram
Best
Laurent