File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,9 @@ def latex():
143
143
raise SystemExit ("Building LaTeX failed." )
144
144
145
145
# Produce pdf.
146
- os .chdir ('build/latex' )
147
-
148
146
# Call the makefile produced by sphinx...
149
- if subprocess .call ("make" ):
147
+ if subprocess .call ("make" , cwd = "build/latex" ):
150
148
raise SystemExit ("Rendering LaTeX failed with." )
151
-
152
- os .chdir ('../..' )
153
149
else :
154
150
print ('latex build has not been tested on windows' )
155
151
@@ -166,13 +162,9 @@ def texinfo():
166
162
raise SystemExit ("Building Texinfo failed." )
167
163
168
164
# Produce info file.
169
- os .chdir ('build/texinfo' )
170
-
171
165
# Call the makefile produced by sphinx...
172
- if subprocess .call ("make" ):
166
+ if subprocess .call ("make" , cwd = "build/texinfo" ):
173
167
raise SystemExit ("Rendering Texinfo failed with." )
174
-
175
- os .chdir ('../..' )
176
168
else :
177
169
print ('texinfo build has not been tested on windows' )
178
170
You can’t perform that action at this time.
0 commit comments