Skip to content

Fix #4783: Sphinx crashed when drives of srcdir and outdir are different - #4807

Merged
tk0miya merged 1 commit into
sphinx-doc:1.7from
tk0miya:4783_relpath
Apr 8, 2018
Merged

tk0miya merged 1 commit into
sphinx-doc:1.7from
tk0miya:4783_relpath

Conversation

@tk0miya

@tk0miya tk0miya commented Apr 1, 2018

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Bugfix

Purpose

@tk0miya tk0miya added this to the 1.7.3 milestone Apr 1, 2018
@codecov

codecov Bot commented Apr 1, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #4807 into 1.7 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              1.7    #4807      +/-   ##
==========================================
+ Coverage   81.87%   81.87%   +<.01%     
==========================================
  Files         284      284              
  Lines       37740    37742       +2     
  Branches     5873     5873              
==========================================
+ Hits        30899    30902       +3     
+ Misses       5528     5527       -1     
  Partials     1313     1313
Impacted Files Coverage Δ
sphinx/application.py 77.6% <100%> (ø) ⬆️
sphinx/builders/__init__.py 80.31% <100%> (ø) ⬆️
sphinx/builders/gettext.py 90.06% <100%> (ø) ⬆️
sphinx/environment/__init__.py 80.04% <100%> (ø) ⬆️
sphinx/testing/util.py 93.69% <100%> (+0.05%) ⬆️
sphinx/util/i18n.py 88.88% <100%> (ø) ⬆️
sphinx/util/osutil.py 70.62% <100%> (+1.3%) ⬆️
sphinx/ext/doctest.py 80.6% <100%> (ø) ⬆️
sphinx/__init__.py 57.5% <0%> (-2.5%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb1e8f9...cff8dc5. Read the comment docs.

Comment thread sphinx/util/osutil.py


def safe_relpath(path, start=None):
def relpath(path, start=os.curdir):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the default value of start argument. It should be same as os.path.relpath(): https://docs.python.org/3.6/library/os.path.html#os.path.relpath

@tk0miya
tk0miya merged commit 7e17070 into sphinx-doc:1.7 Apr 8, 2018
@tk0miya
tk0miya deleted the 4783_relpath branch April 8, 2018 14:36
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant