code: def get_ruleset_dirs():
      
  
      ruleset_dirs = []
  
      cwd_rulesets = os.path.join(".", RULESET_DIRECTORY_NAME)
      if os.path.isdir(cwd_rulesets):
          logger.debug("Ruleset directory found in current directory ('{}').".format(cwd_rulesets))
          ruleset_dirs.append(cwd_rulesets)
  
      if "VIRTUAL_ENV" in os.environ:
          venv_local_share = os.path.join(os.environ["VIRTUAL_ENV"],
                                          RULESET_DIRECTORY)
          if os.path.isdir(venv_local_share):
              logger.debug("Virtual env ruleset directory found ('{}').".format(venv_local_share))
              ruleset_dirs.append(venv_local_share)
  
      local_share = os.path.join(os.path.expanduser("~"),
                                 ".local",
                                 RULESET_DIRECTORY)
      if os.path.isdir(local_share):
          logger.debug("Local ruleset directory found ('{}').".format(local_share))
          ruleset_dirs.append(local_share)
  
      usr_local_share = os.path.join("/usr/local", RULESET_DIRECTORY)
      if os.path.isdir(usr_local_share):
          logger.debug("Global ruleset directory found ('{}').".format(usr_local_share))
          ruleset_dirs.append(usr_local_share)
  
      if not ruleset_dirs:
          msg = "Ruleset directory cannot be found."
          logger.warning(msg)
          raise ColinRulesetException(msg)
  
      return ruleset_dirs
docs: Get the directory with ruleset files
      First directory to check:  ./rulesets
      Second directory to check:  $HOME/.local/share/colin/rulesets
      Third directory to check: /usr/local/share/colin/rulesets
      :return: str