Development Team/Almanac/sugar.env: Difference between revisions
Appearance
m DevelopmentTeam/Almanac/sugar.env moved to Development Team/Almanac/sugar.env: deCamel casing |
m moved Walter is a wanker 12/Almanac/sugar.env to Development Team/Almanac/sugar.env over redirect: revert |
| (3 intermediate revisions by 3 users not shown) | |
(No difference)
| |
Latest revision as of 20:32, 23 February 2010
For Developers: almanac · api · bugs · gitorious · cgit · download · people · OLPC: wiki · activities · trac · cgit · build index · repository · firmware · Fedora: packages
|
Sugar Almanac for Developers |
|---|
|
Development Team/Almanac Main Page Package: sugar |
|
Package: sugar.activity |
|
Package: sugar.graphics |
|
Package: sugar.datastore |
|
Logging |
|
Notes on using Python Standard Logging |
|
Internationalization |
Environment Helper Functions
How do I get the profile path, where datastore, logging and other files are all located?
You can use the env.get_profile_path() method, which returns the base directory from which you can find other directories related to the datastore, logging, and activity-specific files.
from sugar import env
...
print env.get_profile_path()
= How do I get the log path?
Use env.get_logs_path to get the specific path for logging.
from sugar import env
...
print env.get_logs_path()