1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added script tp update requirements

This commit is contained in:
Krateng 2019-10-16 15:15:16 +02:00
parent fe953d07b1
commit 4ffeb9eae2
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# generic temporary / dev files
*.pyc
*.sh
!/update_requirements.sh
*.note
*.xcf
nohup.out

6
maloja
View File

@ -297,7 +297,11 @@ def update():
os.chmod("./maloja",os.stat("./maloja").st_mode | stat.S_IXUSR)
print("Make sure to update required modules! (" + yellow("pip3 install -r requirements.txt --upgrade --no-cache-dir") + ")")
try:
returnval = os.system("bash update_requirements.sh")
assert returnval == 0
except:
print("Make sure to update required modules! (" + yellow("bash update_requirements.sh") + ")")
if stop(): start() #stop returns whether it was running before, in which case we restart it

1
update_requirements.sh Normal file
View File

@ -0,0 +1 @@
pip3 install -r requirements.txt --upgrade --no-cache-dir