Hi,
 
We have embedded python 2.6 within our C++ app and it runs quite
substantial Python scripts operating on the C++ data perfectly OK.
 
I have just compiled a small module (foo) using Cython and it works fine
standalone and within the main script under normal Python.
 
>From within the embedded interpreter, however, the main script reports


ImportError: No module named foo

despite me specifically appending the source folder to sys.path just
prior to the import.

Not sure if this is related but I need to do 

from foo import *

in order to get the imported python class name into my local namespace.

Any ideas anybody?

 

Dave.

 

 

 

</PRE>
<p style="font-family:'Arial';font-size:8pt">
**********************************************************************<br>
Please consider the environment - do you really need to print this email?<br>
<br>
This email is intended only for the person(s) named above and may contain 
private and confidential information. If it has come to you in error, please 
destroy and permanently delete any copy in your possession and contact us on 
+44 (0) 161 480 4420. The information in this email is copyright &copy; CDL 
Group Holdings Limited. We cannot accept any liability for any loss or damage 
sustained as a result of software viruses. It is your responsibility to carry 
out such virus checking as is necessary before opening any attachment.<br>
Cheshire Datasystems Limited uses software which automatically screens incoming 
emails for inappropriate content and attachments. If the software identifies 
such content or attachment, the email will be forwarded to our Technology 
Department for checking. You should be aware that any email which you send to 
Cheshire Datasystems Limited is subject to this procedure. <br>
Cheshire Datasystems Limited, Strata House, Kings Reach Road, Stockport SK4 
2HD<br>
Registered in England and Wales with Company Number 3991057<br>
VAT registration: 727 1188 33</p>
<PRE> 
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to