#NEWLINE# def make_exe( fn ) : #NEWLINE# #INDENT# if hasattr ( os , 'chmod' ) : #NEWLINE# #INDENT# oldmode = ( os . stat ( fn ) . st_mode & 4095 ) #NEWLINE# newmode = ( ( oldmode | 365 ) & 4095 ) #NEWLINE# os . chmod ( fn , newmode ) #NEWLINE# logger . info ( 'Changed mode of %s to %s' , newmode , oct ( newmode ) )