verbose_mode getter/setter

This commit is contained in:
IgorKlopov 2014-12-08 20:00:35 +03:00
parent 7ff95ec255
commit b88824a70c

View file

@ -23,3 +23,13 @@ TARGET_PLATFORM = {
'linux2': 'linux',
'win32': 'win32',
}[sys.platform]
verbose_mode = False
def enable_verbose_mode():
print 'Running in verbose mode'
global verbose_mode
verbose_mode = True
def is_verbose_mode():
return verbose_mode