mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-24 00:09:48 +08:00
parent
efc29ff31b
commit
feb68323b7
@ -378,17 +378,17 @@ def xml_catalogue(ctx, building):
|
|||||||
catalogue = {}
|
catalogue = {}
|
||||||
sp = sys.path[:]
|
sp = sys.path[:]
|
||||||
for doc in building:
|
for doc in building:
|
||||||
sys.path.insert(0, top_dir.find_node(doc).abspath())
|
|
||||||
#
|
#
|
||||||
# Import using the imp API so the module is reloaded for us.
|
# Import using the imp API so the module is reloaded for us.
|
||||||
#
|
#
|
||||||
import imp
|
import imp
|
||||||
|
sys.path = [top_dir.find_node(doc).abspath()]
|
||||||
mf = imp.find_module('conf')
|
mf = imp.find_module('conf')
|
||||||
|
sys.path = sp[:]
|
||||||
try:
|
try:
|
||||||
bconf = imp.load_module('bconf', mf[0], mf[1], mf[2])
|
bconf = imp.load_module('bconf', mf[0], mf[1], mf[2])
|
||||||
finally:
|
finally:
|
||||||
mf[0].close()
|
mf[0].close()
|
||||||
sys.path = sp[:]
|
|
||||||
catalogue[doc] = {
|
catalogue[doc] = {
|
||||||
'title': bconf.project,
|
'title': bconf.project,
|
||||||
'version': str(ctx.env.VERSION),
|
'version': str(ctx.env.VERSION),
|
||||||
|
@ -3,6 +3,8 @@ sys.path.append(os.path.abspath('../common/'))
|
|||||||
|
|
||||||
from conf import *
|
from conf import *
|
||||||
|
|
||||||
|
project = "RTEMS Development Environment Guide"
|
||||||
|
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index',
|
('index',
|
||||||
'develenv.tex',
|
'develenv.tex',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user