SIP

CHEN Guang dr.cg at 126.com
Fri Apr 9 10:25:10 CEST 2010


PythoidC ( http://pythoidc.sf.net ) provides some examples and templates for writing and importing C modules (.c or .exe) into Python environment, may be of some help. 
----- Original Message ----- 
From: "omnia neo" <neo.omnia7 at gmail.com>
To: <python-list at python.org>
Sent: Friday, April 09, 2010 1:51 PM
Subject: Re: SIP


On Apr 9, 10:42 am, omnia neo <neo.omn... at gmail.com> wrote:
> On Apr 9, 10:30 am, Stefan Behnel <stefan... at behnel.de> wrote:
>
> > omnia neo, 09.04.2010 07:01:
>
> > > import siptest
>
> > > I get following error :
> > > import error : no module named siptest
>
> > Is the directory where your siptest.dll lies in your PYTHONPATH (sys.path)?
>
> > Otherwise, Python can't find it.
>
> > Stefan
>
> thanks for reply Stefan..
> well I added PYTHONPATH = <my dll path> in my environment variables
> (windows XP).

well I just tried this too.
I added the path using sys.path on the fly in my python script as
follows:

###############
import sys
sys.path.append("<dll path>")
print sys.path
import siptest
###############

again same error:
ImportError: No module named siptest.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100409/05c5837d/attachment.html>


More information about the Python-list mailing list