parameters: (self)
docstring: Ensure that the application directory exists.
docstring_summary: Ensure that the application directory exists.
docstring_tokens: Ensure that the application directory exists .
function: def _ensure_config_dir_exists(self):
          """
          Ensure that the application directory exists.
          """
  
          if not os.path.isdir(self.config_dir_path):
              debug(EnvironmentController._id,
                       'create config directory in %s' % self.home_dir_path)
              try:
                  os.makedirs(self.config_dir_path)
              except OSError:
                  # Check again due to concurrent access.
                  if not os.path.isdir(self.config_dir_path):
                      sys.exit(
                          DiagnosticReporter.fatal(ERROR_CREATING_CONFIG_DIRECTORY))
function_tokens: def _ensure_config_dir_exists ( self ) : if not os . path . isdir ( self . config_dir_path ) : debug ( EnvironmentController . _id , 'create config directory in %s' % self . home_dir_path ) try : os . makedirs ( self . config_dir_path ) except OSError : # Check again due to concurrent access. if not os . path . isdir ( self . config_dir_path ) : sys . exit ( DiagnosticReporter . fatal ( ERROR_CREATING_CONFIG_DIRECTORY ) )