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:
parent
fe953d07b1
commit
4ffeb9eae2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
# generic temporary / dev files
|
||||
*.pyc
|
||||
*.sh
|
||||
!/update_requirements.sh
|
||||
*.note
|
||||
*.xcf
|
||||
nohup.out
|
||||
|
6
maloja
6
maloja
@ -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
1
update_requirements.sh
Normal file
@ -0,0 +1 @@
|
||||
pip3 install -r requirements.txt --upgrade --no-cache-dir
|
Loading…
Reference in New Issue
Block a user