a
This commit is contained in:
parent
87ce3aa276
commit
2fddc49d70
1 changed files with 1 additions and 3 deletions
|
@ -147,9 +147,7 @@ class PipenvOperation(object):
|
||||||
if package_name:
|
if package_name:
|
||||||
command = f"pipenv install {package_name}"
|
command = f"pipenv install {package_name}"
|
||||||
else:
|
else:
|
||||||
with open(os.path.join(path, "requirements.txt"), "w") as f:
|
command = f"pipenv install"
|
||||||
subprocess.Popen("pipenv run pip freeze".split(), cwd=path, stdout=f)
|
|
||||||
command = f"pipenv run pip install -r requirements.txt"
|
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(command.split(), cwd=path)
|
output = subprocess.check_output(command.split(), cwd=path)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
|
|
Loading…
Reference in a new issue