1. PyPA
  2. Python Packaging Authority Projects
  3. distlib

Commits

Vinay Sajip  committed ef7d5f5

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

  • Participants
  • Parent commits 805d394
  • Branches default

Comments (0)

Files changed (1)

File distlib/scripts.py

View file
             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