Skip to content

Commit

Permalink
Relax path checks (#175)
Browse files Browse the repository at this point in the history
``Path.resolve(strict=True)`` requires paths to exist, which we don't mandate.

Co-authored-by: Michael Park <michael.park@canonical.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 7d199ed commit 3e702d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx_autobuild/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ def _parse_args(argv):

# Copy needed settings
args.sourcedir = Path(sphinx_args.sourcedir).resolve(strict=True)
args.outdir = Path(sphinx_args.outputdir).resolve(strict=True)
args.outdir = Path(sphinx_args.outputdir).resolve()
if sphinx_args.doctreedir:
args.doctree_dir = Path(sphinx_args.doctreedir).resolve(strict=True)
args.doctree_dir = Path(sphinx_args.doctreedir).resolve()
else:
args.doctree_dir = None
if sphinx_args.warnfile:
args.warnings_file = Path(sphinx_args.warnfile).resolve(strict=True)
args.warnings_file = Path(sphinx_args.warnfile).resolve()
else:
args.warnings_file = None

Expand Down

0 comments on commit 3e702d8

Please sign in to comment.