-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to pass python file path as a parameter #35
Comments
Ahhh, I see. Yes, send it this way! I'm thinking there's probably some spec in [0] https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files |
@munro I've sent a PR. AFAIK there is nothing in Electron itself for this, however in one of the popular builders you need to specify those files manually. |
Until the PR is landed, I am using this hack to make it work with ASAR: electron/electron#9459 (comment) together with following {
"asarUnpack": ["node_modules/python-bridge"]
} |
I am getting a weird error. Does it have any relation with this issue? |
I found what causing this error, It's just the wrong symlink in my linux system |
node-python-bridge/index.js
Line 7 in 9b13b40
Most Electron apps pack files into the ASAR archive, so there is no access to
node_modules
. During build it is possible to copy some resources outside of the ASAR bundle to be accessed later.Would you accept a PR to provide a custom path to
node_python_bridge.py
?The text was updated successfully, but these errors were encountered: