diff options
author | Cillian O'Donnell <cpodonnell8@gmail.com> | 2017-08-26 09:15:50 +0100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-08-29 18:05:00 +1000 |
commit | 67d48e2e0712da75c9a0f2213a1f58cf984fa3d1 (patch) | |
tree | 6b32dc5bc32421b14f9556c822b64def1d26f771 | |
parent | tester: Add qoriq_e6500_64 (diff) | |
download | rtems-tools-67d48e2e0712da75c9a0f2213a1f58cf984fa3d1.tar.bz2 |
rtemstoolkit/host.py: Change option to search parent directory in Python3.
This works in Python2.7 and Python3.5. Python2 __import__ searches relative
and absolute paths by default. Python3 searches only absolute paths as default.
The option change searches 1 parent directory relative to the calling function
and has the same meaning in Python2 and Python3.
-rw-r--r-- | rtemstoolkit/host.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemstoolkit/host.py b/rtemstoolkit/host.py index bae56b6..bc75394 100644 --- a/rtemstoolkit/host.py +++ b/rtemstoolkit/host.py @@ -84,7 +84,7 @@ def _load(): #except: # raise error.general('failed to load %s host support' % (name)) - platform = __import__(name, globals(), locals(), ['.', '']) + platform = __import__(name, globals(), locals(), ['.', ''], 1) if platform is None: raise error.general('failed to load %s host support' % (name)) |