[New-bugs-announce] [issue4081] Error copying directory to _static in Sphinx

Tim Delaney report at bugs.python.org
Thu Oct 9 00:28:39 CEST 2008


New submission from Tim Delaney <timothy.c.delaney at gmail.com>:

If there is a directory to be copied to _static, Sphinx first attempts 
to delete any directory by the same name in the _static directory. See 
attached sphinx_static_exc.txt for the exception.

The simplest fix is to change the call (line 595, Sphinx 0.4.2) to::

    shutil.rmtree(targetname)

to::

    shutil.rmtree(targetname, ignore_errors=True)

It would also be preferable if instead of blindly doing rmtree/copytree, 
only updated files be copied to _static.

----------
assignee: georg.brandl
components: Documentation tools (Sphinx)
files: sphinx_static_exc.txt
messages: 74551
nosy: georg.brandl, tcdelaney
severity: normal
status: open
title: Error copying directory to _static in Sphinx
type: crash
Added file: http://bugs.python.org/file11752/sphinx_static_exc.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4081>
_______________________________________


More information about the New-bugs-announce mailing list