[PD] pyext and canvas_getcurrentdir()
Thomas Grill
gr at grrrr.org
Tue Mar 11 09:40:25 CET 2008
Hi Peter,
Am 11.03.2008 um 08:57 schrieb Peter Brinkmann:
> Does pyext offer Python bindings for functions like
> canvas_getcurrentdir() from m_pd.h?
>
currently it doesn't, but i'll see if i can add it
> I looked at the source code and noticed that pyext appends the
> current directory to the Python search path, so that I get the
> current directory via sys.path[-1]. I'm a little worried, though,
> that this behavior may change in a future revision of pyext.
You are right... it's not a good idea to rely on that, also because
any other Python script in the same process changing the path will
interfere with this assumption.
gr~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2407 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080311/b06c759c/attachment.bin>
More information about the Pd-list
mailing list