From cb69a9f6ce005671cd7b39ebb16d7469d958fa5a Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Mon, 9 Jan 2006 10:15:21 +0000 Subject: Improved warning message for non-existing packages in pkgload call. --- numpy/_import_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/_import_tools.py') diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py index ca9a4ceed..248c68e6a 100644 --- a/numpy/_import_tools.py +++ b/numpy/_import_tools.py @@ -59,8 +59,8 @@ class PackageLoader: info_files.extend(names_files) break else: - self.warn('Package %r does not have info.py file. Ignoring.'\ - % package_name) + self.warn('No scipy-style subpackage %r found in %s. Ignoring.'\ + % (package_name,':'.join(self.parent_path))) info_modules = self.info_modules for package_name,info_file in info_files: @@ -137,7 +137,7 @@ class PackageLoader: to load all of them in one call. If a name which doesn't exist in scipy's namespace is - given, a warning on missing info.py file is shown. + given, a warning is shown. Inputs: -- cgit v1.2.1