The tilde in your PATH may not be your HOME

Debugging running Python scripts with PDB via GDB