code: def get_profile_dir ():
      
      if os.name == 'nt':
          basedir = unicode(os.environ["APPDATA"], nt_filename_encoding)
          dirpath = os.path.join(basedir, u"Opera", u"Opera")
      elif os.name == 'posix':
          basedir = unicode(os.environ["HOME"])
          dirpath = os.path.join(basedir, u".opera")
      return dirpath
docs: Return path where all profiles of current user are stored.