mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Small adjustments
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# make the package itself runnable with python -m maloja
|
||||
|
||||
from .proccontrol.control import main
|
||||
main()
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
from .control import main
|
||||
main()
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user