nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 50 forks source link

Make Python prefer bundled files #58

Closed MiniGod closed 7 years ago

MiniGod commented 9 years ago

Cherry-picked: https://github.com/TooTallNate/node-gyp/commit/52e8d9f70d6c9ce24d5beb5075b3c1cb68a88d7b to fix https://github.com/TooTallNate/node-gyp/issues/363

As Python has no concept of node packages, it will load whatever comes first in sys.path. Here we help Python by making sure files bundled in this node package are the preferred path when looking for imports.

(cherry picked from commit 52e8d9f70d6c9ce24d5beb5075b3c1cb68a88d7b)

ghostoy commented 7 years ago

Close it since we've migrated to node-gyp@0.3.4 which includes similar fixes.