summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-14 12:33:18 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-14 12:33:18 (GMT)
commiteba57b6f3a7deca951b0f98b83893f0c99a1002b (patch)
treec624d4be78cbc6a7c647398099f7d7631d10d435 /Modules
parent7e817d0e901cf68320692a81b0aa39f44a5498e3 (diff)
downloadcpython-eba57b6f3a7deca951b0f98b83893f0c99a1002b.zip
cpython-eba57b6f3a7deca951b0f98b83893f0c99a1002b.tar.gz
cpython-eba57b6f3a7deca951b0f98b83893f0c99a1002b.tar.bz2
Add comments about Windows in Modules/getpath.c
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 2c55e18..bc5e09f 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -48,7 +48,7 @@
* argv0_path. For prefix, the landmark's path is derived from the VPATH
* preprocessor variable (taking into account that its value is almost, but
* not quite, what we need). For exec_prefix, the landmark is
- * Modules/Setup. If the landmark is found, we're done.
+ * pybuilddir.txt. If the landmark is found, we're done.
*
* For the remaining steps, the prefix landmark will always be
* lib/python$VERSION/os.py and the exec_prefix will always be
@@ -89,6 +89,8 @@
* directory). This seems to make more sense given that currently the only
* known use of sys.prefix and sys.exec_prefix is for the ILU installation
* process to find the installed Python tree.
+ *
+ * NOTE: Windows MSVC builds use PC/getpathp.c instead!
*/
#ifdef __cplusplus
@@ -134,7 +136,10 @@ static wchar_t *lib_python = L"lib/python" VERSION;
/* In principle, this should use HAVE__WSTAT, and _wstat
should be detected by autoconf. However, no current
POSIX system provides that function, so testing for
- it is pointless. */
+ it is pointless.
+ Not sure whether the MS_WINDOWS guards are necessary:
+ perhaps for cygwin/mingw builds?
+*/
#ifndef MS_WINDOWS
static int
_wstat(const wchar_t* path, struct stat *buf)