]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for self.root == None
authorRobin Dunn <robin@alldunn.com>
Wed, 7 Apr 2004 21:58:04 +0000 (21:58 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 7 Apr 2004 21:58:04 +0000 (21:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/config.py

index f5d53215771a2e30d28400bd862334938085c965..baa5c9dfa2a8f076b4b9bef337acf4976364b4cc 100644 (file)
@@ -408,7 +408,7 @@ class wx_install_headers(distutils.command.install_headers.install_headers):
             return
 
         root = self.root
             return
 
         root = self.root
-        if WXPREFIX.startswith(root):
+        if root is None or WXPREFIX.startswith(root):
             root = ''
         for header, location in headers:
             install_dir = os.path.normpath(root + WXPREFIX + location)
             root = ''
         for header, location in headers:
             install_dir = os.path.normpath(root + WXPREFIX + location)