mirror of https://github.com/nymea/nymea.git
fix print method
parent
b9053a31ae
commit
308aef672b
|
|
@ -42,14 +42,12 @@ def printInfo(info):
|
|||
|
||||
#-----------------------------------------------------------------------------------------------------------------
|
||||
def printWarning(warning):
|
||||
if args.filetype is 'i':
|
||||
print("Warning:" + warning)
|
||||
print("Warning:" + warning)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------
|
||||
def printError(error):
|
||||
if args.filetype is 'i':
|
||||
print('Error:' + error)
|
||||
print('Error:' + error)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------
|
||||
|
|
@ -346,7 +344,7 @@ def writePluginInfoFile():
|
|||
|
||||
#-----------------------------------------------------------------------------------------------------------------
|
||||
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)
|
||||
writeToFile('/* This file is generated by the guh build system. Any changes to this file will')
|
||||
writeToFile(' * be lost.')
|
||||
|
|
@ -374,7 +372,7 @@ def writeExternPluginInfoFile():
|
|||
writeToFile('')
|
||||
writeToFile('#endif // EXTERNPLUGININFO_H')
|
||||
outputFile.close()
|
||||
printInfo(' --> generated successfully \'%s\'' % (args.output))
|
||||
print(' --> generated successfully \'%s\'' % (args.output))
|
||||
|
||||
|
||||
##################################################################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue