Finding the path to a executable?
Jacob Carlborg
doob at me.com
Wed Aug 7 03:17:55 PDT 2013
On 2013-08-07 07:31, Alan wrote:
> Hello! This may seem like a simple question, maybe an embarassing
> question but how would I fetch the absolute path to the directory where
> my executable is located? My wording is known to be confusing so I will
> give an example:
>
> cd ~/projects/program
> dmd Program.d -ofProgram
>
> That executable would be located in /home/alan/projects/program for
> example. SO my question is how would I fetch the absolute path to that
> directory?
>
> Thanks for any help!
There's a pull request for that:
https://github.com/D-Programming-Language/phobos/pull/1224
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list