diff options
author | Chris Johns <chrisj@rtems.org> | 2017-04-25 00:31:44 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-04-25 00:31:44 +1000 |
commit | 7d3350d0bbcb7468fecfd9abffb3fe9f34c0c6c3 (patch) | |
tree | 4f8ef647a1757ebb69cab6730a567fde860ec883 /tester/rt/stty.py | |
parent | tester: Add support for expected-fail, user-input, and benchmarks. (diff) | |
download | rtems-tools-7d3350d0bbcb7468fecfd9abffb3fe9f34c0c6c3.tar.bz2 |
rtemstoolkit: Move host support access into a separate module.
Moving the host support into a module lets it get used where options
is not being used.
Diffstat (limited to 'tester/rt/stty.py')
-rw-r--r-- | tester/rt/stty.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tester/rt/stty.py b/tester/rt/stty.py index b6f0204..55c4ed6 100644 --- a/tester/rt/stty.py +++ b/tester/rt/stty.py @@ -37,11 +37,11 @@ import sys import termios from rtemstoolkit import error -from rtemstoolkit import options +from rtemstoolkit import host from rtemstoolkit import path def save(): - if not options.host_windows: + if not host.is_windows: try: sin = termios.tcgetattr(sys.stdin) sout = termios.tcgetattr(sys.stdout) @@ -60,13 +60,13 @@ def restore(attributes): class tty: def __init__(self, dev): - if options.host_windows: + if host.is_windows: raise error.general('termios not support on host') self.dev = dev self.default_attr = None self.fd = None self.if_on = False - if options.host_windows: + if host.is_windows: raise error.general('TTY consoles not supported on Windows.') if not path.exists(dev): raise error.general('dev not found: %s' % (dev)) |