class_docstr: Global configuration settings
class_docstr_tok: ["Global","configuration","settings"]
code: def __init__(self):
      self._download_server_url = SERVER_URL
      self._config_home = join(expanduser("~"), ".niftynet")
  
      try:
          if os.environ[MODEL_ZOO_VAR]:
              self._download_server_url = os.environ[MODEL_ZOO_VAR]
      except KeyError:
          pass
  
      try:
          if os.environ[CONFIG_HOME_VAR]:
              self._config_home = os.environ[CONFIG_HOME_VAR]
      except KeyError:
          pass
  
      self._config_file = join(self._config_home, "config.ini")
  
      self._niftynet_home = self._config_home
  
      self.setup()
  
file_path: NiftyNet/niftynet/utilities/niftynet_global_config.py
imports: import sys
  from random import choice
  from string import ascii_lowercase
  from time import strftime
  import os
  from os.path import expanduser, join, split, isdir, isfile, splitext
  from niftynet.utilities.decorators import singleton
label_desc: Use image node_id 1 to create a new NiftyNetGlobalConfig object from inherited base classes: object with example: obj = NiftyNetGlobalConfig()