def getLocalReleaseFile( self ): ''' This Method Gets A Local Download Path For The Change Log. @return: Change Log Local Path. ( String ) ''' self.cLocalReleasesFile = os.path.join( sIBL_Common.sIBL_GetTemporarySystemPath(), os.path.basename( self.cReleasesFilePath ) ) cLogger.debug( "> Current Change Log Local Path : '%s'.", self.cLocalReleasesFile ) return self.cLocalReleasesFile
def getLocalReleaseFile(self): ''' This Method Gets A Local Download Path For The Change Log. @return: Change Log Local Path. ( String ) ''' self.cLocalReleasesFile = os.path.join( sIBL_Common.sIBL_GetTemporarySystemPath(), os.path.basename(self.cReleasesFilePath)) cLogger.debug("> Current Change Log Local Path : '%s'.", self.cLocalReleasesFile) return self.cLocalReleasesFile
for i in range(0, len(cScriptContent)): cScriptContent[i] = cScriptContent[i] + "\n" if "@" in cScriptContent[i]: for cKey in cTemplateSectionsAttributes: if cTemplateSectionsAttributesStore[cKey] in cScriptContent[i]: cLogger.debug( "> Output Loader Script 'cKey = Value' : '%s' = '%s'.", cKey, str(cTemplateSectionsAttributes[cKey])) nLine = cScriptContent[i].replace( cTemplateSectionsAttributesStore[cKey], str(cTemplateSectionsAttributes[cKey])) cScriptContent[i] = nLine if cOutputFile is None: cEnvVariable = sIBL_Common.sIBL_GetTemporarySystemPath() if cEnvVariable is not None: cScriptFilePath = cEnvVariable.replace("\\", "/") + scriptOutputName else: cLogger.error( "> Can't Output Loader Script : '%s'.", "No 'TMP' Or 'TMPDIR' Environment Variables Found on the Current System !" ) return False, None else: cScriptFilePath = cOutputFile.replace("\\", "/") cScriptFile = sIBL_Common.sIBL_File(cScriptFilePath) cScriptFile.setFileContent(cScriptContent)
else : cOutputName = "Undefined_sIBL_Framework_Output_Script" cLogger.warning( "> Output Script Name Not Found In Template File, Current Output Loader Script Name : '%s'.", cOutputName ) scriptOutputName = cOutputName for i in range( 0, len( cScriptContent ) ): cScriptContent[i] = cScriptContent[i] + "\n" if "@" in cScriptContent[i]: for cKey in cTemplateSectionsAttributes: if cTemplateSectionsAttributesStore[cKey] in cScriptContent[i]: cLogger.debug( "> Output Loader Script 'cKey = Value' : '%s' = '%s'.", cKey, str( cTemplateSectionsAttributes[cKey] ) ) nLine = cScriptContent[i].replace( cTemplateSectionsAttributesStore[cKey], str( cTemplateSectionsAttributes[cKey] ) ) cScriptContent[i] = nLine if cOutputFile is None : cEnvVariable = sIBL_Common.sIBL_GetTemporarySystemPath() if cEnvVariable is not None : cScriptFilePath = cEnvVariable.replace( "\\", "/" ) + scriptOutputName else : cLogger.error( "> Can't Output Loader Script : '%s'.", "No 'TMP' Or 'TMPDIR' Environment Variables Found on the Current System !" ) return False, None else : cScriptFilePath = cOutputFile.replace( "\\", "/" ) cScriptFile = sIBL_Common.sIBL_File( cScriptFilePath ) cScriptFile.setFileContent( cScriptContent ) return True , cScriptFilePath @sIBL_Common.sIBL_Execution_Call def sIBL_GetCommandLineParameters( argv ):