Changeset 95abe76 in rtems-tools


Ignore:
Timestamp:
Nov 28, 2018, 6:40:08 PM (5 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
3d2db56
Parents:
571db94
git-author:
Chris Johns <chrisj@…> (11/28/18 18:40:08)
git-committer:
Chris Johns <chrisj@…> (11/28/18 18:45:05)
Message:

waf: Fix version paths on Windows.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/version.py

    r571db94 r95abe76  
    116116                os.path.join('..', 'VERSION'),
    117117                rtems.configuration_file('rtems-version.ini')]:
    118         if os.path.exists(os.path.join(ver)):
     118        if path.exists(path.join(ver)):
    119119            v = configparser.SafeConfigParser()
    120120            try:
    121                 v.read(ver)
     121                v.read(path.host(ver))
    122122            except Exception as e:
    123123                raise error.general('Invalid version config format: %s: %s' % (ver,
     
    246246
    247247if __name__ == '__main__':
    248     print('Version: %s' % (str()))
     248    print('Version: %s' % (str(version())))
     249    if version() == 'undefined':
     250        raise Exception('version is undefined')
  • wscript

    r571db94 r95abe76  
    4141
    4242def get_version(ctx):
     43    #
     44    # The file config/rtems-versin.ini contains the version.
     45    #
    4346    from rtemstoolkit import version as rtemsversion
    4447    try:
Note: See TracChangeset for help on using the changeset viewer.