From: Rolf K. <r.k...@hc...> - 2010-09-01 17:14:19
|
Gustav Montgomerie [mailto:gu...@gm...] wrote: >I have just started using LabView (8.2) and LabPython and I am having trouble importing >modules. My code essentially looks like this: > > >import socket Before you can do any import you need to set the module path in the Python session that you created. That is the path where the Python loader can find the modules. LabPython interfaces to the Python core and makes it available to a LabVIEW application but does not setup anything explicitedly itself. Anything that is not hardwired in the Python DLL will have to be setup by you when creating the Python session. For your case you want to add the path where your socket module is found to the sys.path variable before attempting to issue an import command. Rolf Kalbermatter |