#NEWLINE# def make_tx( self , texture_path ) : #NEWLINE# #INDENT# 'converts the given texture to TX\n        ' #NEWLINE# tx_path = '' . join ( [ os . path . splitext ( texture_path ) [ 0 ] , '.tx' ] ) #NEWLINE# if ( not os . path . exists ( tx_path ) ) : #NEWLINE# #INDENT# cmd = ( 'maketx -o "%s" -u --oiio %s' % ( tx_path , self ) ) #NEWLINE# if ( os . name == 'nt' ) : #NEWLINE# #INDENT# proc = subprocess . Popen ( cmd , creationflags = subprocess . SW_HIDE , shell = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# proc = subprocess . Popen ( cmd , shell = True ) #NEWLINE# #UNINDENT# proc . wait ( ) #NEWLINE# #UNINDENT# return tx_path