original_docstring: Load configuration json from file.
docstring: Load configuration json from file.
docstring_tokens: Load configuration json from file .
code: def _load_from_file(self) -> None:
          """Load configuration json from file."""
          if not os.path.exists(self._file_path):
              config_dir = os.path.dirname(self._file_path)
              os.makedirs(config_dir, exist_ok=True)
              self.save()
              return
  
          with open(self._file_path, "r", encoding="utf8") as f:
              self._config = json.load(f)
code_tokens: def _load_from_file ( self ) -> None : if not os . path . exists ( self . _file_path ) : config_dir = os . path . dirname ( self . _file_path ) os . makedirs ( config_dir , exist_ok = True ) self . save ( ) return with open ( self . _file_path , "r" , encoding = "utf8" ) as f : self . _config = json . load ( f )
short_docstring: Load configuration json from file.
short_docstring_tokens: Load configuration json from file .
comment: """Load configuration json from file."""