Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
eba57b6f
Commit
eba57b6f
authored
Aug 14, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments about Windows in Modules/getpath.c
parent
7e817d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Modules/getpath.c
Modules/getpath.c
+7
-2
No files found.
Modules/getpath.c
View file @
eba57b6f
...
@@ -48,7 +48,7 @@
...
@@ -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 @@
...
@@ -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;
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment