summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/config.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-04-25 00:31:44 +1000
committerChris Johns <chrisj@rtems.org>2017-04-25 00:31:44 +1000
commit7d3350d0bbcb7468fecfd9abffb3fe9f34c0c6c3 (patch)
tree4f8ef647a1757ebb69cab6730a567fde860ec883 /rtemstoolkit/config.py
parenttester: Add support for expected-fail, user-input, and benchmarks. (diff)
downloadrtems-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 'rtemstoolkit/config.py')
-rw-r--r--rtemstoolkit/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtemstoolkit/config.py b/rtemstoolkit/config.py
index 697bcaf..a16261b 100644
--- a/rtemstoolkit/config.py
+++ b/rtemstoolkit/config.py
@@ -51,12 +51,14 @@ import sys
try:
from . import error
from . import execute
+ from . import host
from . import log
from . import options
from . import path
except (ValueError, SystemError):
import error
import execute
+ import host
import log
import options
import path
@@ -211,7 +213,7 @@ class file(object):
if len(sl):
e = execute.capture_execution()
for s in sl:
- if options.host_windows:
+ if host.is_windows:
cmd = '%s -c "%s"' % (self.macros.expand('%{__sh}'), s[2:-1])
else:
cmd = s[2:-1]