Diffstat (limited to 'scripts/builder/backendBuilder.py') (more/less context) (show whitespace changes)
-rw-r--r-- | scripts/builder/backendBuilder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/builder/backendBuilder.py b/scripts/builder/backendBuilder.py index f5dc7b2..16dbe2f 100644 --- a/scripts/builder/backendBuilder.py +++ b/scripts/builder/backendBuilder.py @@ -1,49 +1,49 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys, os, json import shutil import main import hashlib class BackendBuilder: def __init__ (self, projectTargetDir, frontends, versions, settings): self.projectTargetDir = projectTargetDir self.frontends = frontends self.versions = versions self.settings = settings def name (self): raise NotImplementedError() def relativePath (self): raise NotImplementedError() def compileCode (self): pass def copyCompiledCodeToTargetDir (self): src = self.sourceFolder() dst = self.targetFolder() main.createFolder(os.path.dirname(dst)) shutil.copytree(src, dst) def sourceFolder (self): return main.projectBaseDir() + '/backend/' + self.relativePath() + '/src' def targetFolder (self): return self.projectTargetDir + self.relativePath() def createTargetFolder (self): main.createFolder(self.targetFolder()) # def copyFrontendResources (self, frontend): # print "copying resources for frontend: " + frontend # print "SETTINGS: " + str(self.settings) def writeToTargetFolder (self, filename, content): file = open(self.targetFolder() + '/' + filename, 'w') |