Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Almanac/sugar.activity.activity
(view source)
Revision as of 13:26, 14 December 2008
162 bytes added
,
13:26, 14 December 2008
→How do I get the name of my activity?
Line 40:
Line 40:
#print out the name of this activity
#print out the name of this activity
print activity.get_bundle_name()
print activity.get_bundle_name()
+
+
=== How do I get the version number of my activity? ===
+
+
#print out the version number of this activity
+
print os.environ['SUGAR_BUNDLE_VERSION']
= Class: Activity =
= Class: Activity =
Walter
Bureaucrats
,
Administrators
10,579
edits