From 3552b9242884ddb5b9c33c1a980a08df725ae93a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 18 Jun 2007 10:05:11 +0200 Subject: [PATCH] Create the locale dir if it does not exist. --- sugar/activity/bundlebuilder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py index 67bbe73c..c7f637c7 100644 --- a/sugar/activity/bundlebuilder.py +++ b/sugar/activity/bundlebuilder.py @@ -185,6 +185,10 @@ def cmd_uninstall(prefix): shutil.rmtree(path) def cmd_genpot(manifest): + locale_path = os.path.join(_get_source_path(), 'locale') + if not os.path.isdir(locale_path): + os.mkdir(locale_path) + python_files = [] file_list = _get_file_list(manifest) for file_name in file_list: