author | Michael Krelin <hacker@klever.net> | 2013-11-26 20:16:08 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-11-26 20:16:08 (UTC) |
commit | 7759f50a024a3e450237c308562ae745c808d2e1 (patch) (side-by-side diff) | |
tree | c3ac074e224cb0632a858f9c24c43e6c1ccdd631 /scripts/builder | |
parent | fab898af773b3bbf28ed6c67c89b032d740d19f1 (diff) | |
download | clipperz-7759f50a024a3e450237c308562ae745c808d2e1.zip clipperz-7759f50a024a3e450237c308562ae745c808d2e1.tar.gz clipperz-7759f50a024a3e450237c308562ae745c808d2e1.tar.bz2 |
builder: moved temp folder adjustements where it belongs
it wasn't meant to be in the script language builder, but only should've
affected node backend
-rwxr-xr-x | scripts/builder/backends/nodeBuilder.py | 6 | ||||
-rw-r--r-- | scripts/builder/backends/scriptLanguageBuilder.py | 3 |
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) |