mirror of
https://github.com/ClaytonWWilson/Scraper-for-theTVDB.com.git
synced 2025-12-18 02:18:46 +00:00
Finished "Install Requirements" option.
This commit is contained in:
parent
80a863c8f9
commit
46d20e69bc
16
actions.py
16
actions.py
@ -188,11 +188,17 @@ def download(imageType, parsed_respObj):
|
|||||||
return saveNameList
|
return saveNameList
|
||||||
|
|
||||||
def installReqs():
|
def installReqs():
|
||||||
if is_pip_installed == True:
|
if is_pip_installed() == True:
|
||||||
# open Requirements.txt
|
with open("requirements.txt") as f:
|
||||||
# subprocess.call(["pip", "install", module], stdout=subprocess.DEVNULL,
|
reqs = f.readlines()
|
||||||
# stdin =subprocess.DEVNULL,
|
reqs = [x.strip() for x in reqs]
|
||||||
# stderr=subprocess.DEVNULL)
|
|
||||||
|
for module in reqs:
|
||||||
|
print("Installing {}... ".format(module))
|
||||||
|
subprocess.call(["pip", "install", module], stdout=subprocess.DEVNULL,
|
||||||
|
stdin =subprocess.DEVNULL,
|
||||||
|
stderr=subprocess.DEVNULL)
|
||||||
|
print("Done!\n")
|
||||||
else:
|
else:
|
||||||
print("You need to install pip.")
|
print("You need to install pip.")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user