Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/service/bundleregistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/bundleregistry.py')
-rw-r--r--service/bundleregistry.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/bundleregistry.py b/service/bundleregistry.py
index 8dd141c..25a3440 100644
--- a/service/bundleregistry.py
+++ b/service/bundleregistry.py
@@ -24,6 +24,8 @@ from sugar.bundle.bundle import MalformedBundleException
from sugar import env
from sugar import util
+import config
+
# http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
def _get_data_dirs():
if os.environ.has_key('XDG_DATA_DIRS'):
@@ -34,7 +36,7 @@ def _get_data_dirs():
def _load_mime_defaults():
defaults = {}
- f = open(env.get_data_path('mime.defaults'), 'r')
+ f = open(os.path.join(config.data_path, 'mime.defaults'), 'r')
for line in f.readlines():
line = line.strip()
if line and not line.startswith('#'):