Skip to content

Commit 4ce6b21

Browse files
committed
Another test for preferred location jnml
1 parent c20db29 commit 4ce6b21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

omv/engines/getjnml.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ def install_jnml():
1818
try:
1919
jnmlpath = os.path.join(os.environ["XDG_DATA_HOME"], "jnml")
2020
except KeyError:
21-
jnmlpath = os.path.join(os.environ["HOME"], ".local/share/jnml")
21+
localsharepath = os.path.join(os.environ["HOME"], ".local/share")
22+
if os.path.isdir(localsharepath):
23+
jnmlpath = os.path.join(localsharepath, "jnml")
24+
else:
25+
jnmlpath = os.path.join(os.environ["HOME"], "jnml")
26+
2227
elif osname == "Darwin":
2328
jnmlpath = os.path.join(os.environ["HOME"], "Library/jnml")
2429
else:

0 commit comments

Comments
 (0)