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

Added total scrobble count stats

This commit is contained in:
Krateng
2018-12-08 00:01:44 +01:00
parent 98c23cd8af
commit e7e4cdebee
7 changed files with 104 additions and 10 deletions

22
maloja
View File

@@ -1,6 +1,22 @@
#!/usr/bin/env python
import subprocess
neededmodules = [
"bottle",
"waitress"
]
toinstall = []
subprocess.Popen(["python","server.py"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
print("Maloja started!")
for m in neededmodules:
try:
exec("import " + m) #I'm sorry
except:
toinstall.append(m)
if toinstall != []:
print("The following python modules need to be installed:")
for m in toinstall:
print("\t" + m)
else:
import subprocess
subprocess.Popen(["python","server.py"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
print("Maloja started!")