Fix sip_file path detection
authorScott Kitterman <scott@kitterman.com>
Fri, 15 Dec 2017 19:05:22 +0000 (14:05 -0500)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 28 Jun 2018 01:40:00 +0000 (02:40 +0100)
Gbp-Pq: Name 0007-Fix-sip_file-path-detection.patch

Python/configure.py

index 30a13f0cb0c042796e923998f39d84e22269c007..bf266cbb0674bf229f7767cb567da50ac087ab77 100644 (file)
@@ -1369,7 +1369,7 @@ def _generate_code(target_config, opts, pkg_config, module_config):
     sip_file = module_config.get_sip_file(target_config)
 
     head, tail = os.path.split(sip_file)
-    while head:
+    while head != '/':
         head, tail = os.path.split(head)
 
     if tail != sip_file: