#93 0.6.5 regression leads to extra entries on sys.path

closed-fixed
Mark Hammond
None
5
2006-07-02
2006-06-29
Mark Hammond
No

In 0.6.5 built programs, sys.path contains 2 entries -
the main directory, and the .zip file. This is a
regression introduced in revision 1.30 of start.c.
Specifically, that revision *attempts* to stick with a
single path entry, but neglected to notice a
side-effect of calling PySys_SetArgv is that the
directory portion of sys.argv[0] is added to sys.path.

These extra entries are a regression and causes failure
using libxml2, amongst others.

Attached is a patch to fix this.

Discussion

  • Mark Hammond
    Mark Hammond
    2006-06-30

    Logged In: YES
    user_id=14198

    oops - patch file missed the import-tab.* changes.

     
  • Mark Hammond
    Mark Hammond
    2006-06-30

    Updated patch

     
    Attachments
  • Mark Hammond
    Mark Hammond
    2006-07-02

    Logged In: YES
    user_id=14198

    Checked in - thanks Jimmy.

     
  • Mark Hammond
    Mark Hammond
    2006-07-02

    • status: open --> closed-fixed