Skip to content

Commit b03ae0e

Browse files
committed
feat(jnml): update util to also use pyneuroml
1 parent 99ed5ca commit b03ae0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

omv/engines/jneuroml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def get_environment():
1717
jnmlhome = os.environ["JNML_HOME"]
1818
elif shutil.which(JNeuroMLEngine.e_name) is not None:
1919
jnmlhome = Path(shutil.which(JNeuroMLEngine.e_name)).parent
20+
else:
21+
jnmlhome = ""
2022

2123
environment_vars = {"JNML_HOME": jnmlhome}
2224

omv/omv_util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ def _install_engine(eng):
228228
if ee.is_installed():
229229
already_installed = True
230230
else:
231-
from omv.engines.getjnml import install_jnml
232-
233-
install_jnml(engine_version)
231+
ee.install(None)
234232

235233
elif eng.lower() == "neuroConstruct" or eng == "Py_neuroConstruct".lower():
236234
from omv.engines.pyneuroconstruct import PyneuroConstructEngine as ee

0 commit comments

Comments
 (0)