diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-01-27 11:54:56 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-01-27 11:54:56 (GMT) |
commit | 9d13a9836d10e8ef5d2dda4dff6a7931ca2af728 (patch) | |
tree | b05c8b37576e56201ebb6fb7b030e3c018da35f5 /sugar/activity/bundlebuilder.py | |
parent | 37c6c1e9fa9b42d7a65f2234eac61307352887c2 (diff) |
Added new tool sugar-install-bundle.
Diffstat (limited to 'sugar/activity/bundlebuilder.py')
-rw-r--r-- | sugar/activity/bundlebuilder.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py index a2e338f..9b3a81d 100644 --- a/sugar/activity/bundlebuilder.py +++ b/sugar/activity/bundlebuilder.py @@ -68,12 +68,6 @@ def _extract_bundle(source_file, dest_dir): def _get_source_path(): return os.getcwd() -def _get_activities_path(): - path = os.path.expanduser('~/Activities') - if not os.path.isdir(path): - os.mkdir(path) - return path - def _get_bundle_dir(): bundle_name = os.path.basename(_get_source_path()) return bundle_name + '.activity' @@ -82,7 +76,7 @@ def _get_install_dir(prefix): return os.path.join(prefix, 'share/activities') def _get_bundle_path(): - return os.path.join(_get_activities_path(), _get_bundle_dir()) + return os.path.join(env.get_user_activities_dir(), _get_bundle_dir()) def _get_package_name(): bundle = Bundle(_get_source_path()) |