#NEWLINE# def _normalise_opt_name( nm ) : #NEWLINE# #INDENT# 'Normalise option names for cx_Freeze.\n\n    This allows people to specify options named like "opt-name" and have\n    them converted to the "optName" format used internally by cx_Freeze.\n    ' #NEWLINE# bits = nm . split ( '-' ) #NEWLINE# for i in xrange ( 1 , len ( bits ) ) : #NEWLINE# #INDENT# if bits [ i ] : #NEWLINE# #INDENT# bits [ i ] = ( bits [ i ] [ 0 ] . upper ( ) + bits [ i ] [ 1 : ] ) #NEWLINE# #UNINDENT# #UNINDENT# return '' . join ( bits )