From b7db9e6d8a549924584f50ca05409bd8d661b032 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 3 Jan 2013 21:16:14 +0100 Subject: import fix for py 2.5 --- module/api/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module') 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 -- cgit v1.2.3