diff options
author | Paul Bonser <pib@paulbonser.com> | 2013-07-31 21:44:30 -0500 |
---|---|---|
committer | Paul Bonser <pib@paulbonser.com> | 2013-07-31 21:44:30 -0500 |
commit | 07677088453fec3ef8031000f991ab16fade4095 (patch) | |
tree | 1740023ed68ddb31faa9e2dd30d4007b11e3ddc3 /nose | |
parent | 8493ba2571832d7017c5cab7ac0df2840787932b (diff) | |
download | nose-07677088453fec3ef8031000f991ab16fade4095.tar.gz |
Just check for __init__.py instead
Diffstat (limited to 'nose')
-rw-r--r-- | nose/importer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nose/importer.py b/nose/importer.py index d7d9120..e677658 100644 --- a/nose/importer.py +++ b/nose/importer.py @@ -39,7 +39,7 @@ class Importer(object): # find the base dir of the package path_parts = os.path.normpath(os.path.abspath(path)).split(os.sep) name_parts = fqname.split('.') - if path_parts[-1].startswith('__init__'): + if path_parts[-1] == '__init__.py': path_parts.pop() path_parts = path_parts[:-(len(name_parts))] dir_path = os.sep.join(path_parts) |