File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 77
88
99def 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" ])
You can’t perform that action at this time.
0 commit comments