a
This commit is contained in:
parent
be660c91e8
commit
cb2bbccfe1
7 changed files with 27 additions and 39 deletions
|
|
@ -14,9 +14,10 @@ def globally_installed_py_packages():
|
|||
|
||||
global_packages = globally_installed_py_packages()
|
||||
|
||||
p = Pipfile.load(filename="meowPip")
|
||||
name = "cow"
|
||||
p = Pipfile.load(filename=name)
|
||||
content = ""
|
||||
with open("meowPip", "r") as f:
|
||||
with open(name, "r") as f:
|
||||
content = f.read()
|
||||
|
||||
for pip_package in p.data["default"]:
|
||||
|
|
@ -28,5 +29,5 @@ for pip_package in p.data["default"]:
|
|||
substr = f'{pip_package} = "*"'
|
||||
content = content.replace(substr, package)
|
||||
|
||||
with open("meowPippy", "w") as f:
|
||||
with open(name, "w") as f:
|
||||
f.write(content)
|
||||
Loading…
Add table
Add a link
Reference in a new issue