mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-02 05:40:36 +08:00
waf: Fix python3 issues.
- Found after updating to FreeBSD-12.0 which defaults to Python3.
This commit is contained in:
parent
9c3a383193
commit
1599d9937a
@ -142,7 +142,7 @@ class compliance:
|
||||
self.data = None
|
||||
|
||||
def load(self, name):
|
||||
with open(name, 'rb') as f:
|
||||
with open(name, 'r') as f:
|
||||
data = csv.reader(f, delimiter = ',', quotechar = '"')
|
||||
hdr = None
|
||||
rows = []
|
||||
|
14
wscript
14
wscript
@ -7,6 +7,13 @@ import os.path
|
||||
|
||||
import waflib
|
||||
|
||||
#
|
||||
# Set Python's system path to `common` from the top level so the
|
||||
# conf.py modules in subdirectories can be found. See xml_catalogue in
|
||||
# common/waf.py.
|
||||
#
|
||||
sys.path.append(os.path.abspath('common'))
|
||||
|
||||
from common import waf as docs_waf
|
||||
from common import version
|
||||
|
||||
@ -15,13 +22,6 @@ from common import version
|
||||
#
|
||||
rtems_major_version = '5'
|
||||
|
||||
#
|
||||
# Set Python's system path to `common` from the top level so the
|
||||
# conf.py modules in subdirectories can be found. See xml_catalogue in
|
||||
# common/waf.py.
|
||||
#
|
||||
sys.path.append(os.path.abspath('common'))
|
||||
|
||||
#
|
||||
# The documents to build.
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user