Skip to content

Commit 9d9a526

Browse files
committed
Adjusted the reactors.py import of Julia to now look for rms.so
1 parent 0dc7234 commit 9d9a526

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rmgpy/rmg/reactors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
import sys
3636
import logging
3737
import itertools
38+
from os.path import dirname, abspath, join, exists
3839

3940
if __debug__:
4041
try:
41-
from os.path import dirname, abspath, join, exists
4242
path_rms = dirname(dirname(dirname(abspath(__file__))))
4343
from julia.api import Julia
4444
jl = Julia(sysimage=join(path_rms,"rms.so")) if exists(join(path_rms,"rms.so")) else Julia(compiled_modules=False)
@@ -49,6 +49,9 @@
4949
pass
5050
else:
5151
try:
52+
path_rms = dirname(dirname(dirname(abspath(__file__))))
53+
if exists(join(path_rms, "rms.so")):
54+
jl = Julia(sysimage=join(path_rms,"rms.so"))
5255
from pyrms import rms
5356
from diffeqpy import de
5457
from julia import Main

0 commit comments

Comments
 (0)