Ejemplo n.º 1
0
import os
import paths

path = paths.Path()


class Download:
    def download(self, url, neened):
        result = os.system("curl -O  " + url + " > " + path.currentProject +
                           "/" + neened + "/logs/download.log 2>&1")
        return result
Ejemplo n.º 2
0
import os
import paths

paths = paths.Path()


class Build:
    def runBuild(self, version):
        buildPath = paths.currentProject + "/" + version + "/src/postgresql-" + version
        command = " make > " + paths.currentProject + "/" + version + "/logs/build.log 2>&1"

        os.system("cd " + buildPath + " && " + command + "")