Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Richard Lewis <richard.lewis@ue...> - 2003-12-04 09:54:13
I need to be able to use an external module (PyXML) with Spyce.
I have PyXML installed and working with Python (2.3) but I can't import it
into Spyce scripts.
Is there a way to change the module path or something that'll make it work?
>I need to be able to use an external module (PyXML) with Spyce. I have
>PyXML installed and working with Python (2.3) but I can't import it
>into Spyce scripts. Is there a way to change the module path or
>something that'll make it work?
If you can write:
then you can write:
[[ import pyxml ]]
The directory containing your pyxml module should be in your PYTHONPATH
environment variable. Please see section 6.1.1 of the Python tutorial:
Note that this is a Python module, not a Spyce module. Thus, you should
[[.import name=pyxml ]]
To understand the difference between Python and Spyce modules, see:
All the best,