diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 21:16:14 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 21:16:14 +0100 |
commit | b7db9e6d8a549924584f50ca05409bd8d661b032 (patch) | |
tree | ed02b007663d5eea85cc93fb2e39b210da356a57 /module | |
parent | split api into more components (diff) | |
download | pyload-b7db9e6d8a549924584f50ca05409bd8d661b032.tar.xz |
import fix for py 2.5
Diffstat (limited to 'module')
-rw-r--r-- | module/api/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/api/__init__.py b/module/api/__init__.py index 754ed4b19..1348fd26f 100644 --- a/module/api/__init__.py +++ b/module/api/__init__.py @@ -1,4 +1,8 @@ __all__ = ["CoreApi", "ConfigApi", "DownloadApi", "DownloadPreparingApi", "FileApi", "CollectorApi", "UserInteractionApi", "AccountApi", "AddonApi"] + # Import all components -from .import *
\ No newline at end of file +# from .import * +# Above does not work in py 2.5 +for name in __all__: + __import__(__name__ + "." + name)
\ No newline at end of file |