def makescript(filename, compiler):
 dirname = os.path.split(filename)[0]
 if (not os.access(dirname, os.X_OK)):
  os.mkdir(dirname, 493)
 fp = open(filename, 'w')
 fp.write((SCRIPT % compiler))
 fp.close()
 os.chmod(filename, 493)
 print 'fixapplepython23: Created', filename

def makescript ( filename , compiler ) : dirname = os . path . split ( filename ) [ 0 ] if ( not os . access ( dirname , os . X_OK ) ) : os . mkdir ( dirname , 493 ) fp = open ( filename , 'w' ) fp . write ( ( SCRIPT % compiler ) ) fp . close ( ) os . chmod ( filename , 493 ) print 'fixapplepython23: Created' , filename
create a wrapper script for a compiler .