示例#1
0
def FwGetLocation():
    fwFolder = "extracted" + fWorkModelType
    bashModelParameters(fWorkModelType, fWorkBranch)
    Bm.bashFile(getdate(), fWorkModelType, fWorkBranch)
    StartBash(fWorkModelType, fWorkBranch)
    time.sleep(1)
    Bm.removeAllfile(r'' + filelocation + "/config" + fWorkModelType)
    Bm.getEticket(fWorkModelType)
    Bm.locationExtraction(getComboboxLocation(), getdate(), fWorkModelType)
    Bm.launchTCL(fWorkModelType)
    Bm.removeEmptyFile(r'' + filelocation + "/" + fwFolder)
    Bm.sortAndGenerate(filelocation + "/" + fwFolder + "/", getdate(),
                       fWorkModelType)
示例#2
0
def getLocationGemmach():
    gemFolder = "extracted" + gemmachModelType
    bashModelParameters(gemmachModelType, gemmachBranch)
    Bm.bashFile(getdate(), gemmachModelType, gemmachBranch)
    StartBash(gemmachModelType, gemmachBranch)
    time.sleep(1)
    Bm.removeAllfile(r'' + filelocation + "/config" + gemmachModelType)
    Bm.getEticket(gemmachModelType)
    Bm.locationExtraction(getComboboxLocation(), getdate(), gemmachModelType)
    Bm.launchTCL(gemmachModelType)
    Bm.removeEmptyFile(r'' + filelocation + "/" + gemFolder)
    Bm.sortAndGenerate(filelocation + "/" + gemFolder + "/", getdate(),
                       gemmachModelType)
示例#3
0
def StartBash(modelType, branche):
    Bm.bashFile(getdate(), modelType, branche)
    time.sleep(1)
    os.system("chmod -R 777 " + filelocation)
    if Bm.bothCheked is 1:
        os.system("./" + modelType + "00.bash ")
        print("Done, file located at -->" + filelocation + "/bash")
    if Bm.bothCheked is 2:
        os.system("./" + modelType + "12.bash ")
        print("Done, file located at -->" + filelocation + "/bash")
    if Bm.bothCheked is 3:
        os.system("./" + modelType + "00.bash ")
        os.system("./" + modelType + "12.bash ")
        print("Done, file located at -->" + filelocation + "/bash")