Re: How to detect current executable file name?

2013-02-18 Thread eGust
On Monday, 18 February 2013 at 07:32:06 UTC, Jacob Carlborg wrote: On 2013-02-18 04:28, eGust wrote: I need to locate the directory of current executable file, but I can't find how to do that in Phobos. I tried core.runtime.Runtime.args[0], but failed. Is there a standard method of Phobos

How to detect current executable file name?

2013-02-17 Thread eGust
I need to locate the directory of current executable file, but I can't find how to do that in Phobos. I tried core.runtime.Runtime.args[0], but failed. Is there a standard method of Phobos to do that? I only know the way of Windows (GetModuleFileName), but I think as a common task there should

Re: How to detect current executable file name?

2013-02-17 Thread eGust
On Monday, 18 February 2013 at 07:07:42 UTC, Jonathan M Davis wrote: On Monday, February 18, 2013 07:59:08 SaltySugar wrote: On Monday, 18 February 2013 at 03:28:59 UTC, eGust wrote: I need to locate the directory of current executable file, but I can't find how to do that in Phobos. I