Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Almanac/Code Snippets
(view source)
Revision as of 14:45, 16 February 2007
215 bytes added
,
14:45, 16 February 2007
no edit summary
Line 41:
Line 41:
logging.debug('FooActivity._button_activated_cb')
logging.debug('FooActivity._button_activated_cb')
+
= Files =
+
+
This snippet shows how to get a [http://mailman.laptop.org/pipermail/sugar/2007-February/001387.html path to files in the running Activity]:
+
+
from sugar import env
+
activity_path = env.get_bundle_path()
[[Category:HowTo]]
[[Category:HowTo]]
[[Category:Sugar]]
[[Category:Sugar]]
Leejc
5
edits