Commits

Anonymous committed 927c3f6

Make sure the right python path is used for plugins.

Comments (0)

Files changed (1)

py2app/bundletemplate/plist_template.py

         NSMainNibFile=u'MainMenu',
         NSPrincipalClass=NSPrincipalClass,
         PyMainFileNames=[u'__boot__'],
-        PyResourcePackages=[],
+        PyResourcePackages=[ (s % version) for s in [
+            u'lib/python%s',
+            u'lib/python%s/lib-dynload',
+            u'lib/python%s/site-packages.zip',
+        ]],
         PyRuntimeLocations=[(s % version) for s in [
             u'@executable_path/../Frameworks/Python.framework/Versions/%s/Python',
             u'~/Library/Frameworks/Python.framework/Versions/%s/Python',