In addition to getting the current file via @__FILE__, in Julia 0.5 you can get the name of the currently running script (e.g. "foo.jl" when you run "julia foo.jl") via PROGRAM_FILE: https://github.com/JuliaLang/julia/pull/14114
- [julia-users] Getting the name of the running program Ferran Mazzanti
- [julia-users] Re: Getting the name of the running p... Andrea Pagnani
- [julia-users] Re: Getting the name of the runni... Steven G. Johnson
- [julia-users] Re: Getting the name of the runni... Ferran Mazzanti
