Skip to content

Commit

Permalink
relpath cannot be used for separate source/build
Browse files Browse the repository at this point in the history
  • Loading branch information
svenevs committed Sep 12, 2017
1 parent 80432d9 commit f4bdc61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exhale/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4bdc61

Please sign in to comment.