diff options
author | Nat <natcl@hotmail.com> | 2007-09-09 01:29:45 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-09-09 01:29:45 (GMT) |
commit | 16f9f46b980a6833682d74a489769b786f90b903 (patch) | |
tree | 9e6452535e3d63f4abd8ace22af883710deabbf8 /setup_sl.py | |
parent | 1b7bfe703f6d8a9ab196275c7c8b475a7be4fa49 (diff) |
Activity separation mechanism
Diffstat (limited to 'setup_sl.py')
-rw-r--r-- | setup_sl.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/setup_sl.py b/setup_sl.py new file mode 100644 index 0000000..ddb23bf --- /dev/null +++ b/setup_sl.py @@ -0,0 +1,26 @@ +#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+from sugar.activity import bundlebuilder
+import os
+import shutil
+
+os.rename('activity/activity.info', 'activity/activity_old.info')
+shutil.copyfile('activity/activity_sl.info', 'activity/activity.info')
+bundlebuilder.start('TamTamSynthLab')
+os.rename('activity/activity_old.info', 'activity/activity.info')
|