with open('./out.log', 'w') as log:
return subprocess.Popen(['sudo', 'python3', './platform/unix/keycatcher.py'], stdout=log, stderr=log) # keycatcher.py is the script
The issue is: nothing was written to out.log except “Hello World!”. The app was exiting after a few seconds, but even if I hit the hotkey while it's running, nothing gets written. Then, I modified the code:
Hello. I have this script:
And the invoking code:
The issue is: nothing was written to out.log except “Hello World!”. The app was exiting after a few seconds, but even if I hit the hotkey while it's running, nothing gets written. Then, I modified the code:
But now, even Hello World doesn't get written. out.log is just empty.
Is this a module issue, or am i doing something wrong?