Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/env.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-11-05 17:14:00 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-11-05 17:14:00 (GMT)
commitee62ed69b4033fbdbb1c5a613eb5a100205022a1 (patch)
tree28121dfc9dc6cf51732158a83f5d7a7dce18d9c5 /sugar/env.py
parent4b328c84176fb9142112600d80c55a81e529176d (diff)
Pick up system bundles even if xdg dir env is undefined
Diffstat (limited to 'sugar/env.py')
-rw-r--r--sugar/env.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sugar/env.py b/sugar/env.py
index 209f346..0c996b4 100644
--- a/sugar/env.py
+++ b/sugar/env.py
@@ -60,6 +60,13 @@ def get_dbus_config_094():
def get_shell_bin_dir():
return sugar_shell_bin_dir
+# http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
+def get_data_dirs():
+ if os.environ.has_key('XDG_DATA_DIRS'):
+ return os.environ['XDG_DATA_DIRS'].split(':')
+ else:
+ return [ '/usr/local/share/', '/usr/share/' ]
+
_dbus_version = None
def get_dbus_version():
global _dbus_version