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

Small adjustments

This commit is contained in:
krateng
2021-12-21 22:13:27 +01:00
parent 14938d8fb5
commit 72941558d2
4 changed files with 9 additions and 3 deletions

View File

@@ -1,2 +1,4 @@
# make the package itself runnable with python -m maloja
from .proccontrol.control import main
main()

View File

@@ -1,2 +0,0 @@
from .control import main
main()

View File

@@ -81,6 +81,10 @@ def direct():
setup()
from .. import server
def debug():
os.environ["MALOJA_DEV_MODE"] = 'true'
direct()
@mainfunction({"l":"level"},shield=True)
def main(action,*args,**kwargs):
@@ -89,7 +93,7 @@ def main(action,*args,**kwargs):
"restart":restart,
"stop":stop,
"run":direct,
"debug":direct,
"debug":debug,
"import":tasks.loadlastfm,
"backup":tasks.backuphere,