mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 03:23:29 +01:00
Merge pull request #30 from mveril/cleaning-qp-plugins-download
Cleaning qp_plugins code for download git repo
This commit is contained in:
commit
98f46b3cee
@ -186,10 +186,10 @@ def main(arguments):
|
|||||||
url.endswith(".zip"))
|
url.endswith(".zip"))
|
||||||
os.chdir(QP_PLUGINS)
|
os.chdir(QP_PLUGINS)
|
||||||
if is_repo:
|
if is_repo:
|
||||||
cmd=["git", "clone", url]
|
git_cmd=["git", "clone", url]
|
||||||
if arguments["--name"]:
|
if arguments["--name"]:
|
||||||
cmd=cmd+[arguments["--name"]]
|
git_cmd.append(arguments["--name"])
|
||||||
subprocess.check_call(cmd)
|
subprocess.check_call(git_cmd)
|
||||||
else:
|
else:
|
||||||
filename = url.split('/')[-1]
|
filename = url.split('/')[-1]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user