verbose_mode getter/setter
This commit is contained in:
parent
7ff95ec255
commit
b88824a70c
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue