View Single Post
Old 01-30-2023, 08:48 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,426
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah I guess that wont work since pip or whatever is doing that will use the program that ran it not its wrapper.

What you can do is have an env var that causes calibre-debug to interpret commadn line arguments like the python interpeter. Feel free to send a PR implementing that. But be warned that this only soves the problem of command line argument parsing, calibre-debug is not designed to behave like a python interpeter in many ways beyond just parsing command line arguments.
kovidgoyal is offline   Reply With Quote