fix print method
This commit is contained in:
parent
b9053a31ae
commit
308aef672b
@ -42,14 +42,12 @@ def printInfo(info):
|
|||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------
|
||||||
def printWarning(warning):
|
def printWarning(warning):
|
||||||
if args.filetype is 'i':
|
print("Warning:" + warning)
|
||||||
print("Warning:" + warning)
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------
|
||||||
def printError(error):
|
def printError(error):
|
||||||
if args.filetype is 'i':
|
print('Error:' + error)
|
||||||
print('Error:' + error)
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------
|
||||||
@ -346,7 +344,7 @@ def writePluginInfoFile():
|
|||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------
|
||||||
def writeExternPluginInfoFile():
|
def writeExternPluginInfoFile():
|
||||||
printInfo(' --> generate extern-plugininfo.h for plugin \"%s\" = %s' % (pluginMap['name'], pluginMap['id']))
|
print(' --> generate extern-plugininfo.h for plugin \"%s\" = %s' % (pluginMap['name'], pluginMap['id']))
|
||||||
extractPlugin(pluginMap)
|
extractPlugin(pluginMap)
|
||||||
writeToFile('/* This file is generated by the guh build system. Any changes to this file will')
|
writeToFile('/* This file is generated by the guh build system. Any changes to this file will')
|
||||||
writeToFile(' * be lost.')
|
writeToFile(' * be lost.')
|
||||||
@ -374,7 +372,7 @@ def writeExternPluginInfoFile():
|
|||||||
writeToFile('')
|
writeToFile('')
|
||||||
writeToFile('#endif // EXTERNPLUGININFO_H')
|
writeToFile('#endif // EXTERNPLUGININFO_H')
|
||||||
outputFile.close()
|
outputFile.close()
|
||||||
printInfo(' --> generated successfully \'%s\'' % (args.output))
|
print(' --> generated successfully \'%s\'' % (args.output))
|
||||||
|
|
||||||
|
|
||||||
##################################################################################################################
|
##################################################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user