]> granicus.if.org Git - python/commitdiff
After variable expansion, what was formerly a single word can now
authorGuido van Rossum <guido@python.org>
Wed, 6 May 1998 14:38:30 +0000 (14:38 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 May 1998 14:38:30 +0000 (14:38 +0000)
contain multiple words, all of which may have to be joined with the
path of the extension directory.
(Sjoerd)

Tools/freeze/checkextensions.py

index 68f7ff893ed3c5b234ea88ac1e55405995843024..4ed2a7c33c60c670a261a45ec145dc8783388b75 100644 (file)
@@ -44,13 +44,14 @@ def select(e, mods, vars, mod, skipofiles):
                if not w:
                        continue
                w = expandvars(w, vars)
-               if skipofiles and w[-2:] == '.o':
-                       continue
-               if w[0] != '-' and w[-2:] in ('.o', '.a'):
-                       w = os.path.join(e, w)
-               if w[:2] in ('-L', '-R'):
-                       w = w[:2] + os.path.join(e, w[2:])
-               files.append(w)
+               for w in string.split(w):
+                       if skipofiles and w[-2:] == '.o':
+                               continue
+                       if w[0] != '-' and w[-2:] in ('.o', '.a'):
+                               w = os.path.join(e, w)
+                       if w[:2] in ('-L', '-R'):
+                               w = w[:2] + os.path.join(e, w[2:])
+                       files.append(w)
        return files
 
 cc_flags = ['-I', '-D', '-U']