@memoized
def sys_prefix_unfollowed():
 try:
  frame = sys._current_frames().values()[0]
  while frame.f_back:
   frame = frame.f_back
  code = frame.f_code
  filename = code.co_filename
  unfollowed = dirname(dirname(filename))
 except:
  return sys.prefix
 return unfollowed

@ memoized def sys_prefix_unfollowed ( ) : try : frame = sys . _current_frames ( ) . values ( ) [ 0 ] while frame . f_back : frame = frame . f_back code = frame . f_code filename = code . co_filename unfollowed = dirname ( dirname ( filename ) ) except : return sys . prefix return unfollowed
since conda is installed into non-root environments as a symlink only and because sys .