This commit is contained in:
ahmadbilalkhalid 2019-08-30 06:40:38 +05:00
parent 8fe4e5e8a5
commit b7653bb1b1
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ class VirtualenvOperation(object):
if package_name:
command = f"pip install {package_name}"
else:
subprocess.check_output("pipenv run pip freeze > requirements.txt".split(), cwd=path)
with open(os.path.join(path, "requirements.txt"), "w") as f:
subprocess.check_output("pipenv run pip freeze".split(), cwd=path, stdout=f)
command = f"pip install -r requirements.txt"
try:
output = subprocess.check_output(command.split(), cwd=path)