Skip to content

Commit

Permalink
Merge pull request #88 from NeuroML/experimental
Browse files Browse the repository at this point in the history
Improved getneuroml
  • Loading branch information
pgleeson authored Oct 13, 2022
2 parents 292391a + b7af3ff commit 28a04a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions getNeuroML.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def main():
or ("jNeuroML" in repo)
)

if (repo in java_repos or repo in neuroml2_spec_repo) and runMvnInstall:
if (repo in java_repos or repo in neuroml2_spec_repo) \
and runMvnInstall:
command = "mvn install"
print("It's a Java repository, so installing using Maven...")
info = execute_command_in_dir(command, local_dir)
Expand Down Expand Up @@ -162,7 +163,8 @@ def execute_command_in_dir(command, directory, exit_on_fail=True):
% (command, directory, os.path.abspath(directory))
)

p = subprocess.Popen(command, cwd=directory, shell=True, stdout=subprocess.PIPE)
p = subprocess.Popen(command, cwd=directory, shell=True,
stdout=subprocess.PIPE)
return_str = p.communicate()

if p.returncode != 0:
Expand Down

0 comments on commit 28a04a6

Please sign in to comment.