]> granicus.if.org Git - python/commitdiff
When using extention modules, relative path names that occur in the
authorGuido van Rossum <guido@python.org>
Thu, 23 Apr 1998 14:38:46 +0000 (14:38 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 23 Apr 1998 14:38:46 +0000 (14:38 +0000)
Setup file are fixed so that they will work from the freeze build
directory.  However, relative path names in liner -L and -R options
are not fixed in this way.
(Sjoerd Mullender)

Tools/freeze/checkextensions.py

index a7890d83f6a9b98429727f87c6cbc53efdb1d6b1..68f7ff893ed3c5b234ea88ac1e55405995843024 100644 (file)
@@ -48,6 +48,8 @@ def select(e, mods, vars, mod, skipofiles):
                        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