From: duplo Date: Wed, 22 Apr 2009 10:47:14 +0000 (+0000) Subject: Use generic plugins X-Git-Tag: 2.1.0~62 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3001f6f9ca19a6dd354cb1f82425253484c5468b;p=bertos.git Use generic plugins git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2620 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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): """