Feature #2565

Feature #2158: Allow better control of file-based configuration

Configurable list of configuration files [Python]

Added by J. Moringen almost 8 years ago. Updated almost 8 years ago.

Status:ResolvedStart date:06/17/2016
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Python
Target version:rsb-0.15

Associated revisions

Revision c3f63325
Added by J. Moringen almost 8 years ago

Configurable list of configuration files in rsb/__init__.py

fixes #2565

  • rsb/__init__.py (CONFIG_FILES_VARIABLE): new constant; name of the
    environment variable that can be used to overwrite the list of
    configuration files
    (CONFIG_FILE_KEY_SYSTEM): new constant; marker for system wide
    configuration file
    (CONFIG_FILE_KEY_PREFIX): similar
    (CONFIG_FILE_KEY_USER): similar
    (CONFIG_FILE_KEY_PWD): similar
    (DEFAULT_CONFIG_FILES): new constant; default configuration file list
    (_configDefaultConfigFiles): new function; depending on
    presence of CONFIG_FILE_VARIABLE, use its value or default
    configuration file list
    (_configDefaultSourcesToDict): added files keyword parameter; adapted
    documentation string; use supplied list of configuration files

History

#1 Updated by J. Moringen almost 8 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF