Skip to content

Commit

Permalink
Suppress a warning from the pip updater.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmoose committed Oct 16, 2019
1 parent dfa04a8 commit b9c7f81
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@

def update_reqs():
print("Updating requirements. This may take a while on first-time installs..")
p = Popen([sys.executable, "-m", "pip", "install", "--upgrade", "-r", "requirements.txt", "--user"], stdout=PIPE,
stderr=STDOUT, shell=True, cwd=dr)
p = Popen([
sys.executable,
"-m", "pip",
"install", "--upgrade",
"-r", "requirements.txt",
"--user",
"--no-warn-script-location"
], stdout=PIPE, stderr=STDOUT, shell=True, cwd=dr)

for line in p.stdout:
line = line.decode().rstrip()
Expand Down

0 comments on commit b9c7f81

Please sign in to comment.