[Issue 16595] thisExePath resolves symlinks but this isn't mentioned in docs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 16 12:51:01 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16595

--- Comment #5 from Jacob Carlborg <doob at me.com> ---
(In reply to Timothee Cour from comment #4)
> Good point, I just opened a question to figure out if we can even do that:
> 
> http://stackoverflow.com/questions/41190968/how-to-get-path-to-currently-
> running-executable-without-resolving-symlinks-on
> 
> still though, we should have a cross-platform function that implements
> `realPath` (that  one should be doable); and a function to get
> thisExePathUnresolved (that is maybe not available on all platforms)

I think that is asNormalizedPath [1].

[1] http://dlang.org/phobos/std_path.html#asNormalizedPath

--


More information about the Digitalmars-d-bugs mailing list