docker-offlineimap/offlineimap/globals.py
Eygene Ryabinkin f4140cbbed Create global instance of command-line options
This eases testing of option values inside the code.  This instance
is implemented as the read-only copy of the obtained 'options' object,
so callers won't be able to modify its contents.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
2013-02-11 23:34:18 +04:00

13 lines
299 B
Python

# Copyright 2013 Eygene A. Ryabinkin.
#
# Module that holds various global objects.
from offlineimap.utils import const
# Holds command-line options for OfflineIMAP.
options = const.ConstProxy()
def set_options (source):
""" Sets the source for options variable """
options.set_source (source)