We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 698e16e commit 121b36eCopy full SHA for 121b36e
1 file changed
pysrc/juliacall/init.py
@@ -1,10 +1,11 @@
1
-import juliacall as _ # calls init() which calls juliapkg.executable() which lazily downloads julia
+if __name__ == '__main__':
2
+ import juliacall as _ # calls init() which calls juliapkg.executable() which lazily downloads julia
3
-import sys
4
-if "--debug" in sys.argv:
5
- import juliapkg, json
6
- state = juliapkg.state.STATE
7
- state["version"] = str(state["version"])
8
- print(json.dumps(state, indent=2))
9
-else:
10
- print("Initialized successfully. Pass --debug to see the full JuliaPkg state.")
+ import sys
+ if "--debug" in sys.argv:
+ import juliapkg, json
+ state = juliapkg.state.STATE
+ state["version"] = str(state["version"])
+ print(json.dumps(state, indent=2))
+ else:
11
+ print("Initialized successfully. Pass --debug to see the full JuliaPkg state.")
0 commit comments