No. There is __init__.py in the folder. Otherwise the fully qualified
path would not work either since it is no longer a python module.

Vineet


On Sun, Nov 14, 2010 at 10:12 AM, Stefan Behnel <[email protected]> wrote:
> Vineet Jain, 14.11.2010 14:31:
>> Thanks. After playing with it for some time, the error went away after
>> I replaced
>>
>> cimport StructModulePxd
>>
>> with
>>
>> cimport<path.to.pxdfile.>StructModulePxd
>>
>> It seems that the compiler will not find a pxd file with a different
>> name (and no corresponding pyx file) is in the same directory as where
>> you are trying to import it. If I replace the cimport with a fully
>> qualified path then it works.
>
> Maybe you forgot to add an __init__.py file to the package that holds your
> source files?
>
> Stefan
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to