mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix getpythonpath() fix; never #include frozen.c.
This commit is contained in:
parent
6e890b86a8
commit
e8a1e8cef3
1 changed files with 3 additions and 4 deletions
|
|
@ -167,7 +167,8 @@ getpythonpath()
|
||||||
fatal("not enough memory to copy module search path");
|
fatal("not enough memory to copy module search path");
|
||||||
strcpy(buf, path);
|
strcpy(buf, path);
|
||||||
p = buf + strlen(buf);
|
p = buf + strlen(buf);
|
||||||
*p++ = DELIM;
|
if (p != buf)
|
||||||
|
*p++ = DELIM;
|
||||||
strcpy(p, defpath);
|
strcpy(p, defpath);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
@ -201,9 +202,7 @@ struct {
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef USE_FROZEN
|
#ifndef USE_FROZEN
|
||||||
#include "frozen.c"
|
|
||||||
#else
|
|
||||||
struct frozen {
|
struct frozen {
|
||||||
char *name;
|
char *name;
|
||||||
char *code;
|
char *code;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue