File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- import juliacall as _ # calls init() which calls juliapkg.executable() which lazily downloads julia
1
+ if __name__ == '__main__' :
2
+ import juliacall as _ # calls init() which calls juliapkg.executable() which lazily downloads julia
2
3
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." )
4
+ import sys
5
+ if "--debug" in sys .argv :
6
+ import juliapkg , json
7
+ state = juliapkg .state .STATE
8
+ state ["version" ] = str (state ["version" ])
9
+ print (json .dumps (state , indent = 2 ))
10
+ else :
11
+ print ("Initialized successfully. Pass --debug to see the full JuliaPkg state." )
You can’t perform that action at this time.
0 commit comments