Changeset eaab26a in rtems-source-builder


Ignore:
Timestamp:
Mar 10, 2016, 3:52:25 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
14392cc
Parents:
7309d94
Message:

sb: Fix configparser import on Python2 in version.py.

Updates #2619.

Location:
source-builder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb-set-builder

    r7309d94 reaab26a  
    2525sys.path.insert(0, base + '/sb')
    2626
    27 import setbuilder
    28 
    2927try:
    3028    import setbuilder
  • source-builder/sb/version.py

    r7309d94 reaab26a  
    5151    for ver in [top, '..']:
    5252        if path.exists(path.join(ver, 'VERSION')):
    53             import configparser
     53            try:
     54                import configparser
     55            except ImportError:
     56                import ConfigParser as configparser
    5457            v = configparser.SafeConfigParser()
    5558            v.read(path.join(ver, 'VERSION'))
Note: See TracChangeset for help on using the changeset viewer.