diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 22:01:55 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 22:01:55 +0200 |
commit | bca8ceaa7de08fa4395ca243eb96a65888d74ef8 (patch) | |
tree | 3842d89a2d222cf9301ce8086242abced5b8ff29 /pyLoadCore.py | |
parent | closed #402 (diff) | |
download | pyload-bca8ceaa7de08fa4395ca243eb96a65888d74ef8.tar.xz |
restart / quit buttons in webif
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 11 |
1 files changed, 7 insertions, 4 deletions
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() + |