Skip to content

Commit

Permalink
fix python2 problem (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenyus committed Nov 9, 2022
1 parent f5df374 commit 0990a7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -15,7 +15,7 @@ class Interpreter
if (fs.existsSync(dir))
{
fs.readdirSync(dir).forEach(file => {
if (file.match(/libpython.*\.so/))
if (file.match(/libpython3.*\.so/))
{
try
{
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "node-calls-python",
"version": "1.7.3",
"version": "1.7.4",
"license": "MIT",
"description": "This module lets you run python code inside node without spawning new processes",
"authors": [
Expand Down

0 comments on commit 0990a7c

Please sign in to comment.