summaryrefslogtreecommitdiffstats
path: root/pyload/Core.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-10 20:43:42 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-10 20:43:42 +0200
commit5ede83fde874c47123616f8d36cbcf36d92bdbf9 (patch)
tree16450589b2051aa2013f505ae10dfac9a6cf56d7 /pyload/Core.py
parentfixed start scripts (diff)
downloadpyload-5ede83fde874c47123616f8d36cbcf36d92bdbf9.tar.xz
separated setup and paver
Diffstat (limited to 'pyload/Core.py')
-rw-r--r--pyload/Core.py10
1 files changed, 5 insertions, 5 deletions
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