Skip to content

Commit 861198e

Browse files
committed
chore(jnml): format with black
1 parent b4284ae commit 861198e

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

omv/engines/getjnml.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,32 @@
77

88

99
def install_jnml():
10-
11-
version='v0.12.2'
10+
version = "v0.12.2"
1211

1312
try:
14-
jnmlhome = os.environ['JNML_HOME']
13+
jnmlhome = os.environ["JNML_HOME"]
1514
jnmlpath = Path(jnmlhome).parent
1615
except KeyError:
1716
osname = platform.system()
1817
if osname == "Linux":
1918
try:
20-
jnmlpath = os.path.join(os.environ['XDG_DATA_HOME'],'jnml')
19+
jnmlpath = os.path.join(os.environ["XDG_DATA_HOME"], "jnml")
2120
except KeyError:
22-
jnmlpath = os.path.join(os.environ['HOME'],'.local/share/jnml')
21+
jnmlpath = os.path.join(os.environ["HOME"], ".local/share/jnml")
2322
elif osname == "Darwin":
24-
jnmlpath = os.path.join(os.environ['HOME'],'Library/jnml')
23+
jnmlpath = os.path.join(os.environ["HOME"], "Library/jnml")
2524
else:
26-
jnmlpath = os.path.join(os.environ['HOME'],'jnml')
25+
jnmlpath = os.path.join(os.environ["HOME"], "jnml")
2726

2827
if not os.path.isdir(jnmlpath):
2928
os.mkdir(jnmlpath)
3029
with working_dir(jnmlpath):
31-
32-
check_output(['wget', '-nv', 'https://github.com/NeuroML/jNeuroML/releases/download/%s/jNeuroML.zip'%(version)])
33-
check_output(['unzip', 'jNeuroML.zip'])
30+
check_output(
31+
[
32+
"wget",
33+
"-nv",
34+
"https://github.com/NeuroML/jNeuroML/releases/download/%s/jNeuroML.zip"
35+
% (version),
36+
]
37+
)
38+
check_output(["unzip", "jNeuroML.zip"])

0 commit comments

Comments
 (0)