Commit 9a0904da authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #291 from gandalf013/patch-1

Directory with __init__.pyc file is a package dir
parents af866677 d143822a
...@@ -144,6 +144,7 @@ def check_package_dir(dir, package_names): ...@@ -144,6 +144,7 @@ def check_package_dir(dir, package_names):
@cached_function @cached_function
def is_package_dir(dir_path): def is_package_dir(dir_path):
for filename in ("__init__.py", for filename in ("__init__.py",
"__init__.pyc",
"__init__.pyx", "__init__.pyx",
"__init__.pxd"): "__init__.pxd"):
path = os.path.join(dir_path, filename) 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