diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -15,5 +15,14 @@ #You should have received a copy of the GNU General Public License #along with LearningWriting. If not, see <http://www.gnu.org/licenses/>. -from sugar.activity import bundlebuilder -bundlebuilder.start()
\ No newline at end of file +try: + from sugar.activity import bundlebuilder + bundlebuilder.start() +except ImportError: + import os + os.system("find ./ | sed 's,^./,HelloWorldActivity.activity/,g' > MANIFEST") + os.system('rm HelloWorldActivity.xo') + os.chdir('..') + os.system('zip -r HelloWorldActivity.xo HelloWorldActivity.activity') + os.system('mv HelloWorldActivity.xo ./HelloWorldActivity.activity') + os.chdir('HelloWorldActivity.activity')
\ No newline at end of file |