mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add comments about Windows in Modules/getpath.c
This commit is contained in:
parent
7e817d0e90
commit
eba57b6f3a
1 changed files with 7 additions and 2 deletions
|
@ -48,7 +48,7 @@
|
||||||
* argv0_path. For prefix, the landmark's path is derived from the VPATH
|
* argv0_path. For prefix, the landmark's path is derived from the VPATH
|
||||||
* preprocessor variable (taking into account that its value is almost, but
|
* preprocessor variable (taking into account that its value is almost, but
|
||||||
* not quite, what we need). For exec_prefix, the landmark is
|
* 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
|
* For the remaining steps, the prefix landmark will always be
|
||||||
* lib/python$VERSION/os.py and the exec_prefix 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
|
* 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
|
* known use of sys.prefix and sys.exec_prefix is for the ILU installation
|
||||||
* process to find the installed Python tree.
|
* process to find the installed Python tree.
|
||||||
|
*
|
||||||
|
* NOTE: Windows MSVC builds use PC/getpathp.c instead!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -134,7 +136,10 @@ static wchar_t *lib_python = L"lib/python" VERSION;
|
||||||
/* In principle, this should use HAVE__WSTAT, and _wstat
|
/* In principle, this should use HAVE__WSTAT, and _wstat
|
||||||
should be detected by autoconf. However, no current
|
should be detected by autoconf. However, no current
|
||||||
POSIX system provides that function, so testing for
|
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
|
#ifndef MS_WINDOWS
|
||||||
static int
|
static int
|
||||||
_wstat(const wchar_t* path, struct stat *buf)
|
_wstat(const wchar_t* path, struct stat *buf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue