def get_prog():
 try:
  if (os.path.basename(sys.argv[0]) in ('__main__.py', '-c')):
   return ('%s -m sentry' % sys.executable)
 except (AttributeError, TypeError, IndexError):
  pass
 return 'sentry'

def get_prog ( ) : try : if ( os . path . basename ( sys . argv [ 0 ] ) in ( '__main__.py' , '-c' ) ) : return ( '%s -m sentry' % sys . executable ) except ( AttributeError , TypeError , IndexError ) : pass return 'sentry'
extract the proper program executable .