This commit is contained in:
ahmadbilalkhalid 2019-08-30 19:10:00 +05:00
parent 87ce3aa276
commit 2fddc49d70

View file

@ -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: