File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 3535import sys
3636import logging
3737import itertools
38- try :
39- from pyrms import rms
40- from diffeqpy import de
41- from julia import Main
42- except :
43- pass
38+
39+ if __debug__ :
40+ try :
41+ from os .path import dirname , abspath , join , exists
42+ path_rms = dirname (dirname (dirname (abspath (__file__ ))))
43+ from julia .api import Julia
44+ jl = Julia (sysimage = join (path_rms ,"rms.so" )) if exists (join (path_rms ,"rms.so" )) else Julia (compiled_modules = False )
45+ from pyrms import rms
46+ from diffeqpy import de
47+ from julia import Main
48+ except :
49+ pass
50+ else :
51+ try :
52+ from pyrms import rms
53+ from diffeqpy import de
54+ from julia import Main
55+ except :
56+ pass
4457
4558from rmgpy .species import Species
4659from rmgpy .reaction import Reaction
You can’t perform that action at this time.
0 commit comments