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.
|