Skip to content

Commit 7343fd3

Browse files
thiviyanTjorisvandenbossche
authored andcommitted
DOC: Handle whitespace in pathnames (#20880)
1 parent a03d953 commit 7343fd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/make.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ def _sphinx_build(self, kind):
233233
'-b{}'.format(kind),
234234
'-{}'.format(
235235
'v' * self.verbosity) if self.verbosity else '',
236-
'-d{}'.format(os.path.join(BUILD_PATH, 'doctrees')),
236+
'-d"{}"'.format(os.path.join(BUILD_PATH, 'doctrees')),
237237
'-Dexclude_patterns={}'.format(self.exclude_patterns),
238-
SOURCE_PATH,
239-
os.path.join(BUILD_PATH, kind))
238+
'"{}"'.format(SOURCE_PATH),
239+
'"{}"'.format(os.path.join(BUILD_PATH, kind)))
240240

241241
def _open_browser(self):
242242
base_url = os.path.join('file://', DOC_PATH, 'build', 'html')

0 commit comments

Comments
 (0)