New submission from Daniel Molkentin dan...@molkentin.de:
from PC/getpathp.c:538
if (pythonhome != NULL) {
char *p;
bufsz = 1;
for (p = PYTHONPATH; *p; p++) {
if (*p == DELIM)
bufsz++; /* number of DELIM plus one */
}
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Hmm, not sure.
Try with
set PYTHONPATH=.\a;.\b
sys.path will contains the entries:
current_dir\a
current_dir\b
a multiplication seems necessary.
--
nosy: +amaury.forgeotdarc
___
Georg Brandl ge...@python.org added the comment:
Before the multiplication, bufsz is not aptly named: as your snippet shows
it's counting the number of delimiters in the PYTHONPATH.
--
nosy: +georg.brandl
resolution: - invalid
status: open - closed