full path to source file __FILE__

Jonathan Marler via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 21 19:24:16 PDT 2016


On Friday, 22 July 2016 at 01:52:57 UTC, Adam D. Ruppe wrote:
> On Thursday, 21 July 2016 at 22:47:42 UTC, Jonathan Marler 
> wrote:
>> I explain in the original post. Any ideas Adam? Thanks in 
>> advance.
>
> But why does the batch script use it? Since you are rewriting 
> anyway, maybe you can find an easier/better way to achieve the 
> goal.

The script depends on other files relative to where it exists on 
the file system.  I couldn't think of a better design to find 
these files then knowing where the script exists, can you?



More information about the Digitalmars-d-learn mailing list