Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ka_extensionpoint.py
diff options
context:
space:
mode:
authorThomas Jourdan <b.vehikel@googlemail.com>2009-12-12 17:47:09 (GMT)
committer Thomas Jourdan <b.vehikel@googlemail.com>2009-12-12 18:34:15 (GMT)
commit8a6a80557f5e6b8bb69181ac39e1b93ba145e499 (patch)
tree34c8c471f805960e803c299e073a2bb865c83e4f /ka_extensionpoint.py
parentf5ba3b40da10c79508b2e43e9a99b3db78ba4d5b (diff)
removed *.mo files, adding html view
Diffstat (limited to 'ka_extensionpoint.py')
-rw-r--r--ka_extensionpoint.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ka_extensionpoint.py b/ka_extensionpoint.py
index 1f6067f..8e5740e 100644
--- a/ka_extensionpoint.py
+++ b/ka_extensionpoint.py
@@ -63,11 +63,15 @@ def _add(extension_type, extension_class):
if e_key not in _extensions:
_extensions.append(e_key)
-def scann():
+def get_bundle_path():
bundle_path = ka_debug.DEBUG_PATH
if 'SUGAR_BUNDLE_PATH' in os.environ:
from sugar.activity import activity
bundle_path = activity.get_bundle_path()
+ return bundle_path
+
+def scann():
+ bundle_path = get_bundle_path()
ka_debug.info('searching for extensions in ' + bundle_path)
for element in os.listdir(bundle_path):
if element.startswith(_PREFIX) and element.endswith(_PYEXT) \