From 063a144b75a0fb422b9aa95b765e57fd4ae5b83b Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 17 Jan 2017 12:31:56 -0600 Subject: [PATCH] Move sw4stm32 into its own dir --- tools/export/{sw4stm32.py => sw4stm32/__init__.py} | 8 ++++---- .../cproject_common.tmpl} | 0 .../language_settings_commom.tmpl} | 0 .../project_common.tmpl} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename tools/export/{sw4stm32.py => sw4stm32/__init__.py} (96%) rename tools/export/{sw4stm32_cproject_common.tmpl => sw4stm32/cproject_common.tmpl} (100%) rename tools/export/{sw4stm32_language_settings_commom.tmpl => sw4stm32/language_settings_commom.tmpl} (100%) rename tools/export/{sw4stm32_project_common.tmpl => sw4stm32/project_common.tmpl} (100%) diff --git a/tools/export/sw4stm32.py b/tools/export/sw4stm32/__init__.py similarity index 96% rename from tools/export/sw4stm32.py rename to tools/export/sw4stm32/__init__.py index c23979a29d..9b046c72ae 100644 --- a/tools/export/sw4stm32.py +++ b/tools/export/sw4stm32/__init__.py @@ -14,10 +14,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -from exporters import Exporter from os.path import splitext, basename, join from random import randint from tools.utils import mkdir +from tools.export.exporters import Exporter class Sw4STM32(Exporter): @@ -114,6 +114,6 @@ class Sw4STM32(Exporter): } self.__gen_dir('.settings') - self.gen_file('sw4stm32_language_settings_commom.tmpl', ctx, '.settings/language.settings.xml') - self.gen_file('sw4stm32_project_common.tmpl', ctx, '.project') - self.gen_file('sw4stm32_cproject_common.tmpl', ctx, '.cproject') + self.gen_file('sw4stm32/language_settings_commom.tmpl', ctx, '.settings/language.settings.xml') + self.gen_file('sw4stm32/project_common.tmpl', ctx, '.project') + self.gen_file('sw4stm32/cproject_common.tmpl', ctx, '.cproject') diff --git a/tools/export/sw4stm32_cproject_common.tmpl b/tools/export/sw4stm32/cproject_common.tmpl similarity index 100% rename from tools/export/sw4stm32_cproject_common.tmpl rename to tools/export/sw4stm32/cproject_common.tmpl diff --git a/tools/export/sw4stm32_language_settings_commom.tmpl b/tools/export/sw4stm32/language_settings_commom.tmpl similarity index 100% rename from tools/export/sw4stm32_language_settings_commom.tmpl rename to tools/export/sw4stm32/language_settings_commom.tmpl diff --git a/tools/export/sw4stm32_project_common.tmpl b/tools/export/sw4stm32/project_common.tmpl similarity index 100% rename from tools/export/sw4stm32_project_common.tmpl rename to tools/export/sw4stm32/project_common.tmpl