From 5ede83fde874c47123616f8d36cbcf36d92bdbf9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 10 Jun 2013 20:43:42 +0200 Subject: separated setup and paver --- pyload/Core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyload/Core.py') diff --git a/pyload/Core.py b/pyload/Core.py index 16740bafa..15b036c7a 100644 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -19,11 +19,10 @@ # @version: v0.5.0 ############################################################################### -CURRENT_VERSION = '0.4.9.9-dev' +from pyload import __version__ as CURRENT_VERSION import __builtin__ - from getopt import getopt, GetoptError import logging import logging.handlers @@ -42,6 +41,7 @@ import subprocess subprocess.__doc__ = None # the module with the largest doc we are using import InitHomeDir + from AccountManager import AccountManager from config.ConfigParser import ConfigParser from config.ConfigManager import ConfigManager @@ -645,7 +645,7 @@ def deamon(): pyload_core = Core() pyload_core.start() - +# And so it begins... def main(): #change name to 'pyLoadCore' #from module.lib.rename_process import renameProcess @@ -662,6 +662,6 @@ def main(): pyload_core.removeLogger() _exit(1) -# And so it begins... + if __name__ == "__main__": - main() \ No newline at end of file + print "This file can not be started directly." \ No newline at end of file -- cgit v1.2.3