Skip to content

Commit 3e702d8

Browse files
hugovkSecondSkollAA-Turner
authored
Relax path checks (#175)
``Path.resolve(strict=True)`` requires paths to exist, which we don't mandate. Co-authored-by: Michael Park <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent 7d199ed commit 3e702d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx_autobuild/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ def _parse_args(argv):
9898

9999
# Copy needed settings
100100
args.sourcedir = Path(sphinx_args.sourcedir).resolve(strict=True)
101-
args.outdir = Path(sphinx_args.outputdir).resolve(strict=True)
101+
args.outdir = Path(sphinx_args.outputdir).resolve()
102102
if sphinx_args.doctreedir:
103-
args.doctree_dir = Path(sphinx_args.doctreedir).resolve(strict=True)
103+
args.doctree_dir = Path(sphinx_args.doctreedir).resolve()
104104
else:
105105
args.doctree_dir = None
106106
if sphinx_args.warnfile:
107-
args.warnings_file = Path(sphinx_args.warnfile).resolve(strict=True)
107+
args.warnings_file = Path(sphinx_args.warnfile).resolve()
108108
else:
109109
args.warnings_file = None
110110

0 commit comments

Comments
 (0)