Skip to content

Fixes #11 - Error on macOS + Python 3#12

Merged
fohrloop merged 2 commits intowakepy:masterfrom
mikeckennedy:master
Aug 28, 2021
Merged

Fixes #11 - Error on macOS + Python 3#12
fohrloop merged 2 commits intowakepy:masterfrom
mikeckennedy:master

Conversation

@mikeckennedy
Copy link
Copy Markdown
Contributor

Sending text to the subprocess was resulting in the error #11 with bytes no string error. This PR fixes that and just uses process.terminate(). Alternatively, you could do process.send_signal(signal.SIGINT) if you really want.

@fohrloop
Copy link
Copy Markdown
Member

Hi! The Popen.terminate() seems like a good way to do this. Where is the signal import needed?

@mikeckennedy
Copy link
Copy Markdown
Contributor Author

Oh, sorry! The signal import isn't needed. I originally was using process.send_signal(signal.SIGINT) before terminate().

@fohrloop fohrloop merged commit 3d3603a into wakepy:master Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants