#NEWLINE# def formatCommand( cmd ) : #NEWLINE# #INDENT# if ( '::' in os_name ) : #NEWLINE# #INDENT# cmd = cmd . replace ( '::' , ' ' ) #NEWLINE# #UNINDENT# cmd = cmd . replace ( '\\' , '/' ) #NEWLINE# os_name = base . sys_info . get_os_name ( ) #NEWLINE# python_version = base . sys_info . get_python_version ( ) #NEWLINE# if ( ( python_version < 3 ) and ( os_name == 'windows' ) ) : #NEWLINE# #INDENT# cmd = ( '"%s"' % cmd ) #NEWLINE# #UNINDENT# return cmd