mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
be explicit about the actual location of the missing file
This commit is contained in:
parent
bd9d544f8d
commit
0539313b09
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ def newer (source, target):
|
|||
Raise DistutilsFileError if 'source' does not exist.
|
||||
"""
|
||||
if not os.path.exists(source):
|
||||
raise DistutilsFileError, "file '%s' does not exist" % source
|
||||
raise DistutilsFileError, ("file '%s' does not exist" %
|
||||
os.path.abspath(source))
|
||||
if not os.path.exists(target):
|
||||
return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue