Commit d143822a authored by Alok Singhal's avatar Alok Singhal

Directory with __init__.pyc file is a package dir

Consider a directory with __init__.pyc as a package directory.
parent af866677
......@@ -144,6 +144,7 @@ def check_package_dir(dir, package_names):
@cached_function
def is_package_dir(dir_path):
for filename in ("__init__.py",
"__init__.pyc",
"__init__.pyx",
"__init__.pxd"):
path = os.path.join(dir_path, filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment