Development Team/Almanac/Code Snippets: Difference between revisions

Leejc (talk | contribs)
Added development wiki link
Leejc (talk | contribs)
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]]