On Sunday, 28 August 2016 at 02:51:13 UTC, Adam D. Ruppe wrote: > The filename passed to the compiler is easy: __FILE__ works in > D too, and you can just strip off extra path info with ordinary > functions (like std.path's basename or dirname functions). Thanks Adam. Worked like a charm.