Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Is there a portable way to get exe path?

Moderators: larsivi kris

Posted: 10/12/07 13:06:54 Modified: 10/12/07 13:32:35

If I am running an unittest, I cannot get arg[0] of main.

Is there a wrapper between GetCommandLine? on windows and /proc/self/cmdline on Linux ?

Author Message

Posted: 10/12/07 20:56:41

tango.sys.Environment - Environment.exePath(filename)