Commits

Vinay Sajip committed ef7d5f5

Closes #31: Determine distlib package name relatively rather than absolutely.

  • Participants
  • Parent commits 805d394

Comments (0)

Files changed (1)

distlib/scripts.py

             else:
                 bits = '32'
             name = '%s%s.exe' % (kind, bits)
-            result = finder('distlib').find(name).bytes
+            # Issue 31: don't hardcode an absolute package name, but
+            # determine it relative to the current package
+            distlib_package = __name__.rsplit('.', 1)[0]
+            result = finder(distlib_package).find(name).bytes
             return result
 
     # Public API follows