Skip to content

Commit 0d73f10

Browse files
committed
More jnml fixes
1 parent 4ce6b21 commit 0d73f10

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

omv/engines/jneuroml.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ def get_environment():
2525
os.environ["XDG_DATA_HOME"], "jnml/jNeuroMLJar"
2626
)
2727
except KeyError as e:
28-
jnmlhome = os.path.join(
29-
os.environ["HOME"], ".local/share/jnml/jNeuroMLJar"
30-
)
28+
localsharepath = os.path.join(os.environ["HOME"], ".local/share")
29+
if os.path.isdir(localsharepath):
30+
jnmlhome = os.path.join(
31+
os.environ["HOME"], ".local/share/jnml/jNeuroMLJar"
32+
)
33+
else:
34+
jnmlhome = os.path.join(os.environ["HOME"], "jnml/jNeuroMLJar")
35+
3136
elif osname == "Darwin":
3237
jnmlhome = os.path.join(os.environ["HOME"], "Library/jnml/jNeuroMLJar")
3338
else:

0 commit comments

Comments
 (0)