summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-09-08 00:34:17 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-09-08 00:34:17 (GMT)
commit0539313b0996d86e3cf9d5bd666d9e1eaa525bca (patch)
treec803cdb19879bf18fbe6dd96fef0f54f8dc78ba1 /Lib/distutils
parentbd9d544f8ddc1922756b42871965dfa2841ff4b3 (diff)
downloadcpython-0539313b0996d86e3cf9d5bd666d9e1eaa525bca.zip
cpython-0539313b0996d86e3cf9d5bd666d9e1eaa525bca.tar.gz
cpython-0539313b0996d86e3cf9d5bd666d9e1eaa525bca.tar.bz2
be explicit about the actual location of the missing file
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/dep_util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/dep_util.py b/Lib/distutils/dep_util.py
index c139c85..2c6d792 100644
--- a/Lib/distutils/dep_util.py
+++ b/Lib/distutils/dep_util.py
@@ -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