View Single Post
Old 01-26-2024, 12:24 PM   #37
gregorio
Junior Member
gregorio began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Kobo touch, iPad
Fix for macOS

I did a long debug and managed to get the plugin working on macOS.

Specifically in the aceWrapper function the process must be called with
Code:
shell=True
.

In addition you have to set the PATH variable to include
Code:
/usr/local/bin
.

In addition you have to refer to Ace with the full path, in my case
Code:
/usr/local/bin/ace
Finally you have to enter the arguments not as a list, but as text:
Code:
" ".join(args)
The complete command then becomes:

Code:
process = Popen("PATH=$PATH:/usr/local/bin; "+" ".join(args), stdout=PIPE, stderr=PIPE, shell=True)
gregorio is offline   Reply With Quote