From 3001f6f9ca19a6dd354cb1f82425253484c5468b Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 22 Apr 2009 10:47:14 +0000 Subject: [PATCH] Use generic plugins git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2620 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 191aad32..5d08f54d 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -19,7 +19,7 @@ import copytree import pickle import const -from plugins import codelite +import plugins import DefineException def isBertosDir(directory): @@ -94,9 +94,10 @@ def createBertosProject(project_info): # Destination main.c file main = open("srctemplates/main.c", "r").read() open(prjdir + "/main.c", "w").write(main) - # Codelite project files - if "codelite" in project_info.info("OUTPUT"): - codelite.createProject(project_info) + # Files for selected plugins + for plugin in project_info.info("OUTPUT"): + module = getattr(__import__("plugins", {}, {}, [plugin]), plugin) + module.createProject(project_info) def mkGenerator(project_info, makefile): """ -- 2.25.1