Removed creation of NUL file, annoying to get rid of. Also changed error formatting a little.

This commit is contained in:
Brian 2014-05-13 19:08:53 -06:00
parent 4435a36bed
commit 865eaa243d
1 changed files with 5 additions and 5 deletions

View File

@ -206,7 +206,7 @@ class Console( threading.Thread ):
def main( args ): def main( args ):
# check requirements # check requirements
if os.system( 'p4 > Nul' ) != 0: if os.system( 'p4 -V' ) != 0:
print( 'Perforce Command-line Client(p4) is required for this script.' ) print( 'Perforce Command-line Client(p4) is required for this script.' )
sys.exit( 1 ) sys.exit( 1 )
@ -259,9 +259,9 @@ def main( args ):
os.remove( path ) os.remove( path )
remove_count += 1 remove_count += 1
except OSError as ex: except OSError as ex:
c.writeflush( "| " + type( ex ).__name__ ) c.writeflush( "| " + type( ex ).__name__ )
c.writeflush( "| " + repr( ex ) ) c.writeflush( "| " + repr( ex ) )
c.writeflush( "|ERROR." ) c.writeflush( "| ^ERROR^" )
error_count += 1 error_count += 1
@ -274,7 +274,7 @@ def main( args ):
output += " w/ " + str( warning_count ) + " warning/s" output += " w/ " + str( warning_count ) + " warning/s"
if error_count > 0: if error_count > 0:
output += " w/ " + str( error_count ) + " errors/s" output += " w/ " + str( error_count ) + " error/s"
c.write( output + "." ) c.write( output + "." )