def is_old_env():
 env_exists = exists('~/env')
 if (not env_exists):
  return False
 with settings(warn_only=True):
  is_link = run('readlink ~/env')
 if (is_link.return_code == 0):
  return False
 return True

def is_old_env ( ) : env_exists = exists ( '~/env' ) if ( not env_exists ) : return False with settings ( warn_only = True ) : is_link = run ( 'readlink ~/env' ) if ( is_link . return_code == 0 ) : return False return True
return true if ~/env is old-style or false if new style .