be explicit about the actual location of the missing file

This commit is contained in:
Skip Montanaro 2007-09-08 00:34:17 +00:00
parent bd9d544f8d
commit 0539313b09
1 changed files with 2 additions and 1 deletions

View File

@ -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