Changed the hardcoded shebang path to sys.executable. This will ensure that the generated wrapper script uses the same Python interpreter and environment (installed packages) as the cwhy executable invoked on the command line.
The use case is if you install cwhy through something like pipx, the wrapper script will use the interpreter of its isolated environment. Otherwise, you get an ModuleNotFoundError: No module named 'cwhy' error.
Changed the hardcoded shebang path to
sys.executable
. This will ensure that the generated wrapper script uses the same Python interpreter and environment (installed packages) as thecwhy
executable invoked on the command line.The use case is if you install
cwhy
through something like pipx, the wrapper script will use the interpreter of its isolated environment. Otherwise, you get anModuleNotFoundError: No module named 'cwhy'
error.