8000 Overhaul external process calls by tomspur · Pull Request #7572 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Overhaul external process calls #7572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc/make.py: Use cwd in check_output instead of os.chdir
  • Loading branch information
tomspur committed Apr 9, 2017
commit 9bf01c67fbfdfd640ca63f6785a7ff9b3eeefc5b
12 changes: 2 additions & 10 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,9 @@ def latex():
raise SystemExit("Building LaTeX failed.")

# Produce pdf.
os.chdir('build/latex')

# Call the makefile produced by sphinx...
if subprocess.call("make"):
if subprocess.call("make", cwd="build/latex"):
raise SystemExit("Rendering LaTeX failed with.")

os.chdir('../..')
else:
print('latex build has not been tested on windows')

Expand All @@ -195,13 +191,9 @@ def texinfo():
raise SystemExit("Building Texinfo failed.")

# Produce info file.
os.chdir('build/texinfo')

# Call the makefile produced by sphinx...
if subprocess.call("make"):
if subprocess.call("make", cwd="build/texinfo"):
raise SystemExit("Rendering Texinfo failed with.")

os.chdir('../..')
else:
print('texinfo build has not been tested on windows')

Expand Down
0