diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2005-12-16 10:20:34 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2005-12-16 10:20:34 +0000 |
commit | 625ee58c1634debfd5e49b0de631eaf27ab4ae8f (patch) | |
tree | 96eaf26bd672acbe14b49d7d078841e71949ff5d /scipy/distutils/misc_util.py | |
parent | 83015dfad2fc91ddcc0358d1e7d0b7538e647d29 (diff) | |
download | numpy-625ee58c1634debfd5e49b0de631eaf27ab4ae8f.tar.gz |
Fixed test method when using subpackages as standalone.
Diffstat (limited to 'scipy/distutils/misc_util.py')
-rw-r--r-- | scipy/distutils/misc_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy/distutils/misc_util.py b/scipy/distutils/misc_util.py index 51f0e0e4c..f94220c74 100644 --- a/scipy/distutils/misc_util.py +++ b/scipy/distutils/misc_util.py @@ -27,7 +27,7 @@ def get_path(mod_name,parent_path=None): mod = sys.modules[mod_name] file = mod.__file__ d = os.path.dirname(os.path.abspath(file)) - if parent_path: + if parent_path is not None: pd = os.path.abspath(parent_path) if pd==d[:len(pd)]: d = d[len(pd)+1:] |