Message28818
Logged In: YES
user_id=580910
One way to fix this to redefine Py_GetPath to return some kind of array
instead string that is formatted like PYTHONPATH.
Another option is returning a string where path elements are seperated by
NUL bytes (with two NUL bytes at the end to make it possible to find the end
of the path). A problem with this is that this would make it impossible to
have empty strings in your PYTHONPATH (such as 'somedir::otherdir').
Both options have the disadvantage that they change a public interface
(embedders can reimplement Py_GetPath to get full control over the
construction of sys.path).
BTW. This bug was found by a user of py2app, a py2exe-like tool for macosx.
A user of his application complained that the application didn't run when it
was stored in a directory with colons in its name. |
|
Date |
User |
Action |
Args |
2007-08-23 14:40:38 | admin | link | issue1507224 messages |
2007-08-23 14:40:38 | admin | create | |
|