In python there's the convention of using
if __name__ == '__main__':
# do something
to add "executable" behavior to a file which may otherwise be included into another module or class.
Is there something analogous in julia?
I tried using
if current_module() == Main
# do something
end
but this does not quite do the same.
Thank you.
Marcos