Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d527a82

Browse filesBrowse files
committed
BLD: Fix has_include_file side-effect
The passed argument would be modified by function while it not designed to.
1 parent ddcfd82 commit d527a82
Copy full SHA for d527a82

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def has_include_file(include_dirs, filename):
151151
directories in `include_dirs`.
152152
"""
153153
if sys.platform == 'win32':
154-
include_dirs += os.environ.get('INCLUDE', '.').split(';')
154+
include_dirs = list(include_dirs) # copy before modify
155+
include_dirs += os.environ.get('INCLUDE', '.').split(os.pathsep)
155156
for dir in include_dirs:
156157
if os.path.exists(os.path.join(dir, filename)):
157158
return True

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.