diff --git a/source/app.d b/source/app.d index f74798e..547652e 100644 --- a/source/app.d +++ b/source/app.d @@ -161,7 +161,10 @@ } else { import std.random; auto rnd = to!string(uniform(uint.min, uint.max)) ~ "-"; - run_exe_file = environment.get("TEMP")~"\\.rdmd\\source\\"~rnd~outfile; + auto tmp = environment.get("TEMP"); + if( !tmp.length ) tmp = environment.get("TMP"); + if( !tmp.length ) tmp = "."; + run_exe_file = tmp~"\\.rdmd\\source\\"~rnd~outfile; flags ~= "-of"~run_exe_file; }