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

Reply via email to