From 7343fd37f809feeb98844a34dc5854a08df2aa94 Mon Sep 17 00:00:00 2001 From: Thiviyan Thanapalasingam Date: Wed, 26 Sep 2018 20:41:11 +0100 Subject: [PATCH] DOC: Handle whitespace in pathnames (#20880) --- doc/make.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/make.py b/doc/make.py index d85747458148d..cab5fa0ed4c52 100755 --- a/doc/make.py +++ b/doc/make.py @@ -233,10 +233,10 @@ def _sphinx_build(self, kind): '-b{}'.format(kind), '-{}'.format( 'v' * self.verbosity) if self.verbosity else '', - '-d{}'.format(os.path.join(BUILD_PATH, 'doctrees')), + '-d"{}"'.format(os.path.join(BUILD_PATH, 'doctrees')), '-Dexclude_patterns={}'.format(self.exclude_patterns), - SOURCE_PATH, - os.path.join(BUILD_PATH, kind)) + '"{}"'.format(SOURCE_PATH), + '"{}"'.format(os.path.join(BUILD_PATH, kind))) def _open_browser(self): base_url = os.path.join('file://', DOC_PATH, 'build', 'html')