Changeset 20 for python


Ignore:
Timestamp:
Sep 14, 2010, 1:16:59 PM (15 years ago)
Author:
Yuri Dario
Message:

python: fix loading path and prefix access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Modules/getpath.c

    r10 r20  
    126126//                      ";./Lib/lib-dynload;./Lib/site-packages"
    127127// force unixroot
    128 #define PYTHONPATH PREFIX "/lib/python" VERSION ";" \
    129               EXEC_PREFIX "/lib/python" VERSION "/lib-" PLATFORM ";" \
    130               EXEC_PREFIX "/lib/python" VERSION "/site-packages" ";" \
    131               EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" ";" \
     128#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
     129              EXEC_PREFIX "/lib/python" VERSION "/lib-" PLATFORM ":" \
     130              EXEC_PREFIX "/lib/python" VERSION "/site-packages" ":" \
     131              EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" ":" \
    132132/* now local (for building) */ \
    133               "./lib" ";" \
    134               "./lib/plat-" PLATFORM ";" \
    135               "./lib/site-packages" ";" \
     133              "./lib" ":" \
     134              "./lib/plat-" PLATFORM ":" \
     135              "./lib/site-packages" ":" \
    136136              "./lib/lib-dynload"
    137137#endif
     
    660660     * return the compiled-in defaults instead.
    661661     */
     662#ifndef __KLIBC__ // YD force hardcoded build prefix
    662663    if (pfound > 0) {
    663664        reduce(prefix);
     
    669670    }
    670671    else
     672#endif
    671673        strncpy(prefix, PREFIX, MAXPATHLEN);
    672674
     675#ifndef __KLIBC__ // YD force hardcoded build exec_prefix
    673676    if (efound > 0) {
    674677        reduce(exec_prefix);
     
    679682    }
    680683    else
     684#endif
    681685        strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN);
    682686}
Note: See TracChangeset for help on using the changeset viewer.