[Python.NET] Some super basic/possibly stupid question
Dave
dave.hirschfeld at gmail.com
Tue Jul 13 17:15:05 CEST 2010
Joachim de Lezardiere <joachim.lezard at ...> writes:
>
> Which is true, there are no module
> on my computer called System… So how can I import a module that
> doesn’t exist ?
>
Did you import clr first?
Type "help", "copyright", "credits" or "license" for more information.
>>> import System
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named System
>>> import clr
>>> import System
>>> System
<module 'System'>
>>>
NB: You should have copied the clr.pyd and Python.Runtime.dll files you compiled
to the C:\Python27 directory as part of the "installation process"
HTH,
Dave
More information about the PythonDotNet
mailing list