Changeset 67d48e2 in rtems-tools


Ignore:
Timestamp:
Aug 26, 2017, 8:15:50 AM (22 months ago)
Author:
Cillian O'Donnell <cpodonnell8@…>
Branches:
master
Children:
05b4cfb
Parents:
fd0bcc5
git-author:
Cillian O'Donnell <cpodonnell8@…> (08/26/17 08:15:50)
git-committer:
Chris Johns <chrisj@…> (08/29/17 08:05:00)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/host.py

    rfd0bcc5 r67d48e2  
    8585    #    raise error.general('failed to load %s host support' % (name))
    8686
    87     platform = __import__(name, globals(), locals(), ['.', ''])
     87    platform = __import__(name, globals(), locals(), ['.', ''], 1)
    8888
    8989    if platform is None:
Note: See TracChangeset for help on using the changeset viewer.