« Return to Thread: FW: IronPython question
You 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
Sent: Monday, June 29, 2009 1:55 PM
To: Discussion of IronPython
Subject: [IronPython] FW: IronPython question
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?
|
======= |
« Return to Thread: FW: IronPython question
| Free embeddable forum powered by Nabble | Forum Help |