[IronPython] IronPython question
Lepisto, Stephen P
stephen.p.lepisto at intel.com
Mon Jun 29 14:02:19 PDT 2009
You have to have a version of CPython installed such as v2.5 (for IronPython 2.0) or v2.6 (for IronPython 2.6).
sys.path.append(r'\c:\python25\lib') # adjust to whatever version of CPython you have installed.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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:
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?
Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users