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.omn...@gmail.com> To: <python-list@python.org> Sent: Friday, April 09, 2010 1:51 PM Subject: Re: SIP
On Apr 9, 10:42 am, omnia neo <neo.omn...@gmail.com> wrote: > On Apr 9, 10:30 am, Stefan Behnel <stefan...@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.
-- http://mail.python.org/mailman/listinfo/python-list