From bca8ceaa7de08fa4395ca243eb96a65888d74ef8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 11 Oct 2011 22:01:55 +0200 Subject: restart / quit buttons in webif --- pyLoadCore.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index ae84f111c..ad84bdef5 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -624,14 +624,12 @@ def deamon(): pyload_core.start() -# And so it begins... -if __name__ == "__main__": +def main(): #change name to 'pyLoadCore' #from module.lib.rename_process import renameProcess #renameProcess('pyLoadCore') - if "--daemon" in sys.argv: - deamon() + deamon() else: pyload_core = Core() try: @@ -641,3 +639,8 @@ if __name__ == "__main__": pyload_core.log.info(_("killed pyLoad from Terminal")) pyload_core.removeLogger() _exit(1) + +# And so it begins... +if __name__ == "__main__": + main() + -- cgit v1.2.3