Commit 550bb60a authored by Robert Bradshaw's avatar Robert Bradshaw

Fix ticket #4, from package cimport module

parent 7c34236c
...@@ -254,7 +254,11 @@ class Context(object): ...@@ -254,7 +254,11 @@ class Context(object):
if debug_find_module: if debug_find_module:
print("......found ", pxd_pathname) print("......found ", pxd_pathname)
if not pxd_pathname and need_pxd: if not pxd_pathname and need_pxd:
error(pos, "'%s.pxd' not found" % module_name) package_pathname = self.search_include_directories(module_name, ".py", pos)
if package_pathname and package_pathname.endswith('__init__.py'):
pass
else:
error(pos, "'%s.pxd' not found" % module_name)
if pxd_pathname: if pxd_pathname:
try: try:
if debug_find_module: if debug_find_module:
......
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