|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
FW: IronPython questionUsing the Iron Python libraries for extensibility in a C# app,
what do we need to do to make the Python module loadable? Quick
question: I am trying to use a built-in Python module (not .NET) in a SN
script, and I am not sure how to reference it. I tried: import urllib and I am getting: Symyx.Framework.Scripting.ScriptExecutionException:
Exception executing script 'test.toolbarItem1'. No module named urllib --->
IronPython.Runtime.Exceptions.ImportException: No module named urllib Is
it possible to use Python built-in modules?
_______________________________________________ Users mailing list Users@... http://lists.ironpython.com/listinfo.cgi/users-ironpython.com |
|
|
|
Re: IronPython questionYou have to have a version of CPython installed such as v2.5
(for IronPython 2.0) or v2.6 (for IronPython 2.6). From IronPython: import sys sys.path.append(r’\c:\python25\lib’) # adjust
to whatever version of CPython you have installed. import urllib From:
users-bounces@... [mailto:users-bounces@...] On
Behalf Of Marty Nelson Using the Iron Python libraries for extensibility in a C# app,
what do we need to do to make the Python module loadable? Quick
question: I am trying to use a built-in Python module (not .NET) in a SN
script, and I am not sure how to reference it. I tried: import urllib and I am getting: Symyx.Framework.Scripting.ScriptExecutionException:
Exception executing script 'test.toolbarItem1'. No module named urllib --->
IronPython.Runtime.Exceptions.ImportException: No module named urllib Is
it possible to use Python built-in modules?
_______________________________________________ Users mailing list Users@... http://lists.ironpython.com/listinfo.cgi/users-ironpython.com |
|
|
|
Re: IronPython question>From hosting, you can call ScriptEngine.SetSearchPaths to achieve a similar effect.
On Mon, Jun 29, 2009 at 2:02 PM, Lepisto, Stephen P <stephen.p.lepisto@...> wrote:
_______________________________________________ Users mailing list Users@... http://lists.ironpython.com/listinfo.cgi/users-ironpython.com |
| Free embeddable forum powered by Nabble | Forum Help |