Fix gathering of _tplvars

This commit is contained in:
Ivan Kravets
2015-05-06 11:17:38 +01:00
parent 5469b98057
commit 945b1324af

View File

@ -15,7 +15,9 @@ class ProjectGenerator(object):
def __init__(self, project_dir, ide):
self.project_dir = project_dir
self.ide = ide
self._tplvars = self._gather_tplvars()
self._tplvars = {}
self._gather_tplvars()
@staticmethod
def get_supported_ides():
@ -60,12 +62,10 @@ class ProjectGenerator(object):
return bottle.template(content, **self._tplvars)
def _gather_tplvars(self):
data = self.get_project_env()
self._tplvars.update(self.get_project_env())
data.update({
self._tplvars.update({
"project_name": self.get_project_name(),
"includes": self.get_includes(),
"srcfiles": self.get_srcfiles()
})
return data