amodem: fix plot option

This commit is contained in:
Roman Zeyde
2014-09-10 18:20:05 +03:00
parent 410e0c44a7
commit d57d765054

View File

@@ -120,7 +120,7 @@ def main():
# Parsing and execution
log.debug('MODEM settings: %r', config.settings)
if args.plot:
if getattr(args, 'plot', False):
import pylab
args.plot = pylab
args.main(args)