From 13c7003c56e7d09b76adf6a0782c9581abce2868 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@activitycentral.org>
Date: Tue, 8 Feb 2011 14:33:15 +0000
Subject: [PATCH] Import plugins as modules, not as files
---
backend.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
create mode 100644 plugins/__init__.py
diff --git a/backend.py b/backend.py
index a26176b..eaed0f3 100755
a
|
b
|
class PluginManager: |
184 | 184 | plugin_fn = os.path.splitext(fn)[0] |
185 | 185 | |
186 | 186 | # Import |
187 | | p = __import__(os.path.join(self.plugin_dir, plugin_fn)) |
| 187 | p = __import__('.'.join([self.plugin_dir, plugin_fn])) |
188 | 188 | self.plugins.append(p) |
189 | 189 | |
190 | 190 | if debug_info: |