Skip to content

Commit

Permalink
Fix is_dynamically_linked for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Oct 28, 2018
1 parent 4fe9397 commit f831030
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_compatible_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ def is_dynamically_linked(executable):
universal_newlines=True,
)
print_completed_proc(proc)
return "libpython" in proc.stdout or "/Python" in proc.stdout
return (
"libpython" in proc.stdout
or "/Python" in proc.stdout
or "/.Python" in proc.stdout
)
# TODO: support Windows
return None

Expand Down

0 comments on commit f831030

Please sign in to comment.