Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a11431

Browse files
committed
After variable expansion, what was formerly a single word can now
contain multiple words, all of which may have to be joined with the path of the extension directory. (Sjoerd)
1 parent e10053b commit 4a11431

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Tools/freeze/checkextensions.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ def select(e, mods, vars, mod, skipofiles):
4444
if not w:
4545
continue
4646
w = expandvars(w, vars)
47-
if skipofiles and w[-2:] == '.o':
48-
continue
49-
if w[0] != '-' and w[-2:] in ('.o', '.a'):
50-
w = os.path.join(e, w)
51-
if w[:2] in ('-L', '-R'):
52-
w = w[:2] + os.path.join(e, w[2:])
53-
files.append(w)
47+
for w in string.split(w):
48+
if skipofiles and w[-2:] == '.o':
49+
continue
50+
if w[0] != '-' and w[-2:] in ('.o', '.a'):
51+
w = os.path.join(e, w)
52+
if w[:2] in ('-L', '-R'):
53+
w = w[:2] + os.path.join(e, w[2:])
54+
files.append(w)
5455
return files
5556

5657
cc_flags = ['-I', '-D', '-U']

0 commit comments

Comments
 (0)