def is_frozen():
 try:
  base_path = sys._MEIPASS
 except Exception:
  return False
 return True

def is_frozen ( ) : try : base_path = sys . _MEIPASS except Exception : return False return True
return whether we are running in a frozen environment .