class_docstr: Global W&B settings stored under $WANDB_CONFIG_DIR/settings.
class_docstr_tok: ["Global","W","&","B","settings","stored","under","$","WANDB_CONFIG_DIR\/settings","."]
code: def __init__(
      self, load_settings: bool = True, root_dir: Optional[str] = None
  ) -> None:
      self._global_settings = Settings._settings()
      self._local_settings = Settings._settings()
      self.root_dir = root_dir
  
      if load_settings:
          global_path = Settings._global_path()
          if global_path is not None:
              self._global_settings.read([global_path])
          # Only attempt to read if there is a directory existing
          if os.path.isdir(core.wandb_dir(self.root_dir)):
              self._local_settings.read(
                  [Settings._local_path(self.root_dir)]
              )
  
file_path: wandb/wandb/old/settings.py
imports: import configparser
  import getpass
  import os
  import tempfile
  from typing import Any, Optional
  from wandb import env
  from wandb.old import core
  from wandb.sdk.lib import filesystem
  from wandb.sdk.lib.runid import generate_id
label_desc: Use image node_id 1 to create a new Settings object  with example: obj = Settings(load_settings, root_dir)