From f4bdc61b63b4a59197f2d2b0830dec6e65db9bee Mon Sep 17 00:00:00 2001 From: sven Date: Tue, 12 Sep 2017 05:36:45 -0700 Subject: [PATCH] relpath cannot be used for separate source/build --- exhale/configs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exhale/configs.py b/exhale/configs.py index a2f0d54c..b93ade60 100644 --- a/exhale/configs.py +++ b/exhale/configs.py @@ -1110,8 +1110,7 @@ def apply_sphinx_configurations(app): # _parts[1] acceptable ;) _one = containmentFolder == app.srcdir _two = not containmentFolder.startswith(app.srcdir) - _abs_rel = os.path.abspath(os.path.relpath(containmentFolder, app.srcdir)) - _parts = _abs_rel.split(app.srcdir) + _parts = containmentFolder.split(app.srcdir) _three = _parts[0] != "" or len(_parts[1].split(os.path.sep)) > 2 or \ os.path.join(app.srcdir, _parts[1].replace(os.path.sep, "", 1)) != containmentFolder # noqa # If they are equal, containmentFolder points somewhere entirely differently, or the