View Single Post
Old 04-24-2024, 04:44 AM   #4
docjc
Member
docjc began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2020
Device: Kobo
@KevinH

Quote:
Originally Posted by KevinH View Post
You did not say what platform you are using?

...

That said, passing a path to an epub as the first argument to Sigil works well on all platforms.

So why not a shell or batch file to launch Sigil passing in the path to the epub you want to edit if simply adding it on the command line is an issue.

Or try creating a python subprocess with its own shell to invoke Sigil.
Hi,
thank you for quickly answering

I forgot to say it is windows 11 PyQt6 latest version (maybe I should switch to PySide)

As I said, running as a python file works fine, no problem. Using PyInstaller to "compile" is the problem. As the epub file is defined during the process the batch file must also be generated during the process. I will try to do so. I have had the same idea generating to own shell for Sigil, but this gave the same result as before.

I'll keep you informed
docjc is offline   Reply With Quote