yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01280
Re: Euclid.py module
> What about including in Yade Euclid module
> http://pyeuclid.googlecode.com ?
>
> I use it, but have to write absolute path to it. Maybe I do something
> wrong?
If it is in your current dir, you can
import sys; sys.path.append('.')
and then import euclid.
I was hoping that at some point, python would wrap Vector3r in some
suitable python class, but that is not yet the case and it would be
barely doable with the current state of the wrapper. Another thing is
that the (familiar) methods of Wm3::Vector3r are named differently than
in euclid.
But apart from that, you can add it to the svn in gui/py (most likely)
and add the Install stanza to gui/SConscript, where there is utils.py,
eudoxos.py, runtime.py etc. (You have the svn access already, right?)
Vaclav
Follow ups
References