Skip to content

Commit

Permalink
Try setting directory to fix error for windows PermissionError: [Errn…
Browse files Browse the repository at this point in the history
…o 13] Permission denied
  • Loading branch information
birgits committed Jan 12, 2024
1 parent f26de07 commit 5332a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _notebook_run(self, path):
"""
dirname, __ = os.path.split(path)
os.chdir(dirname)
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
with tempfile.NamedTemporaryFile(suffix=".ipynb", dir=dirname) as fout:
args = [
"jupyter",
"nbconvert",
Expand Down

0 comments on commit 5332a8e

Please sign in to comment.