f4140cbbed
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>
13 lines
299 B
Python
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)
|