On 09/04/2012 12:41 PM, Andrej Mitrovic wrote: > __FILE__? > It doesn't necessarily have the exact package hierarchy. e.g: // wonka.d module willy.wonka; pragma(msg, __FILE__); // end wonka.d dmd wonka.d gives "wonka.d" but dmd willy/wonka.d gives "willy/wonka.d"