From 2cf15ff1f87482882c98fcb618c59e9f8eedb34e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 13 Jul 2007 23:31:03 +0200 Subject: [PATCH] Require a bundle name argument to start(). Apparently people are doing crazy things and using the parent directory name does not work well in those cases. --- sugar/activity/bundlebuilder.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py index 8e8c49d6..e149aa35 100644 --- a/sugar/activity/bundlebuilder.py +++ b/sugar/activity/bundlebuilder.py @@ -331,10 +331,7 @@ def sanity_check(): if not os.path.isfile(_get_source_path('NEWS')): print 'WARNING: NEWS file is missing.' -def start(bundle_name=None, manifest='MANIFEST'): - if not bundle_name: - bundle_name = os.path.basename(_get_source_path()) - +def start(bundle_name, manifest='MANIFEST'): sanity_check() if len(sys.argv) < 2: