diff options
author | C. Neves <cn@sueste.net> | 2007-09-10 14:39:27 (GMT) |
---|---|---|
committer | C. Neves <cn@sueste.net> | 2007-09-10 14:39:27 (GMT) |
commit | 5dc8b5e2a5af550d610b356988498b73b6a1fb2b (patch) | |
tree | b5361557fb039956ff86f430b7d62506c4ccc889 /mamamedia_modules.py | |
parent | fc1ac3b99aa58ba68a00b989b495d617774129d2 (diff) |
Mesh contest mode is back, as is Journal integration
Diffstat (limited to 'mamamedia_modules.py')
-rw-r--r-- | mamamedia_modules.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mamamedia_modules.py b/mamamedia_modules.py new file mode 100644 index 0000000..659cd91 --- /dev/null +++ b/mamamedia_modules.py @@ -0,0 +1,22 @@ +import os +import sys + +propfile = os.path.expanduser("~/.sugar/default/org.worldwideworkshop.olpc.MMMPath") +if os.path.exists(propfile): + mmmpath = file(propfile, 'rb').read() +else: + mmmpath=os.path.normpath(os.path.join(os.path.split(__file__)[0], '..', 'MaMaMediaMenu.activity')) + +print ("MMMPath", mmmpath) + +sys.path.append(mmmpath) + +from mmm_modules import * + +import gtk +theme = gtk.icon_theme_get_default() +theme.append_search_path(os.path.join(mmmpath, 'icons')) + +if __name__ == '__main__': + gather_other_translations() + |