diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-01-31 09:31:22 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-01-31 09:31:22 +0000 |
commit | 71f74ba1e86be798f35d59f4d632b9042c53eeb5 (patch) | |
tree | 2c9de9061436ee084869e736b02ce02287f706e7 /numpy/distutils/misc_util.py | |
parent | 33279f11ed91b4175aaca16443ecd828b4b5c549 (diff) | |
download | numpy-71f74ba1e86be798f35d59f4d632b9042c53eeb5.tar.gz |
Improved warn messages.
Diffstat (limited to 'numpy/distutils/misc_util.py')
-rw-r--r-- | numpy/distutils/misc_util.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index c84e7cf8f..6aa937a4f 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -581,7 +581,6 @@ class Configuration: raise TypeError("not a string: %r" % (data_path,)) for path in self.paths(data_path): if not os.path.exists(path): - self.warn('Not existing data path: '+path) continue filenames = [] os.path.walk(path, _gsf_visit_func,filenames) @@ -712,7 +711,8 @@ class Configuration: else: if include_non_existing: new_paths.append(n) - self.warn('could not resolve pattern: %r' % (n)) + self.warn('could not resolve pattern in %s: %r' \ + % (self.local_path,n)) else: n2 = njoin(self.local_path,n) if os.path.exists(n2): @@ -723,7 +723,8 @@ class Configuration: elif include_non_existing: new_paths.append(n) if not os.path.exists(n): - self.warn('not existing path: %r' % (n)) + self.warn('not existing data path in %s: %s' \ + % (self.local_path,n)) else: new_paths.append(n) return map(minrelpath,new_paths) |