Julia Programming Language
"Import guard" in julia
General Usage
question
tkelman
January 16, 2017, 6:56am
4
Try something like
if PROGRAM_FILE == @__FILE__
?
1 Like
Export and run in console
show post in topic
Related topics
Topic
Replies
Views
Activity
Detect if running as script
General Usage
4
1858
February 5, 2018
How to import functions defined in a Julia script file without running the script itslef
General Usage
16
25836
October 30, 2017
Julia Python equivalent of __main__?
New to Julia
4
8726
June 17, 2022
Is it possible to know if module is imported from another one?
General Usage
0
280
April 8, 2020
How to check if an imported name is used in a module?
General Usage
question
0
176
November 17, 2022