summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xscripts/builder/backends/nodeBuilder.py6
-rw-r--r--scripts/builder/backends/scriptLanguageBuilder.py3
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/builder/backends/nodeBuilder.py b/scripts/builder/backends/nodeBuilder.py
index bb63204..783746e 100755
--- a/scripts/builder/backends/nodeBuilder.py
+++ b/scripts/builder/backends/nodeBuilder.py
@@ -1,13 +1,17 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
+import os
from scriptLanguageBuilder import ScriptLanguageBuilder
class NodeBuilder(ScriptLanguageBuilder):
def name(self):
return "Node builder"
-
def relativePath(self):
return 'node'
+
+ def frontEndTempFolder (self):
+ return os.path.join(self.tempFolder(),'htdocs')
+
diff --git a/scripts/builder/backends/scriptLanguageBuilder.py b/scripts/builder/backends/scriptLanguageBuilder.py
index f2d32ba..fb8e609 100644
--- a/scripts/builder/backends/scriptLanguageBuilder.py
+++ b/scripts/builder/backends/scriptLanguageBuilder.py
@@ -1,24 +1,21 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import shutil
from backendBuilder import BackendBuilder
class ScriptLanguageBuilder(BackendBuilder):
- def frontEndTempFolder (self):
- return os.path.join(self.tempFolder(),'htdocs')
-
def compileCode (self):
src = self.sourceFolder()
dst = self.tempFolder()
shutil.copytree(src, dst)
def createPackage (self):
src = self.tempFolder()
dst = self.targetFolder()
shutil.copytree(src, dst)