thisExePath

Returns the full path of the current executable.

@trusted
string
thisExePath
()

Return Value

Type: string

The path of the executable as a string.

Throws

$(REF1 Exception, object)

Examples

import std.path : isAbsolute;
auto path = thisExePath();

assert(path.exists);
assert(path.isAbsolute);
assert(path.isFile);

Meta