mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2193: shutil.SameFileError if source directory and destination directory are same
This commit is contained in:
parent
66ef8102c4
commit
9c2704b705
1
CHANGES
1
CHANGES
@ -20,6 +20,7 @@ Bugs fixed
|
|||||||
* #1480, #2188: LaTeX: Support math in section titles
|
* #1480, #2188: LaTeX: Support math in section titles
|
||||||
* #2071: Fix same footnote in more than two section titles => LaTeX/PDF Bug
|
* #2071: Fix same footnote in more than two section titles => LaTeX/PDF Bug
|
||||||
* #2040: Fix UnicodeDecodeError in sphinx-apidoc when author contains non-ascii characters
|
* #2040: Fix UnicodeDecodeError in sphinx-apidoc when author contains non-ascii characters
|
||||||
|
* #2193: Fix shutil.SameFileError if source directory and destination directory are same
|
||||||
|
|
||||||
|
|
||||||
Release 1.3.3 (released Dec 2, 2015)
|
Release 1.3.3 (released Dec 2, 2015)
|
||||||
|
@ -144,6 +144,10 @@ def main(argv):
|
|||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
return 1
|
return 1
|
||||||
outdir = abspath(args[1])
|
outdir = abspath(args[1])
|
||||||
|
if srcdir == outdir:
|
||||||
|
print('Error: source directory and destination directory are same.',
|
||||||
|
file=sys.stderr)
|
||||||
|
return 1
|
||||||
except IndexError:
|
except IndexError:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user