]> granicus.if.org Git - python/commitdiff
bpo-30804: fix macOS build with framework enabled. (#2516)
authorINADA Naoki <methane@users.noreply.github.com>
Fri, 30 Jun 2017 17:38:02 +0000 (02:38 +0900)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 30 Jun 2017 17:38:02 +0000 (19:38 +0200)
Lib/site.py

index d693bc8eb1a5373314d2bbd4f1c77c7571719be9..7dc1b041c192c889df3171c4ddb6381ecee9c2ad 100644 (file)
@@ -343,8 +343,8 @@ def getsitepackages(prefixes=None):
         # for framework builds *only* we add the standard Apple locations.
         if sys.platform == "darwin" and sys._framework:
             sitepackages.append(
-                    os.path.join("/Library", framework,
-                        '%d.%d' % sys.version_info[:2], "site-packages"))
+                os.path.join("/Library", sys._framework,
+                             '%d.%d' % sys.version_info[:2], "site-packages"))
     return sitepackages
 
 def addsitepackages(known_paths, prefixes=None):