Julia Python equivalent of __main__?

See Frequently Asked Questions · The Julia Language. Something like the following should work:

function main()
   # do stuff
end

if abspath(PROGRAM_FILE) == @__FILE__
    main()
end
23 Likes