Using Geany for development in Linux

The ~/bin is where the pythonbuild.py file is, which is home/joe/bin folder

When i run the command without tilde I get pythonbuild.py: not found

When I run the command with the tilde I get ; permission denied

"which python" returns /usr/bin/python which is a shortcut to python 2.7

I used "python ~/bin/pythonbuild.py" as the command and the script ran.
I got an out of range error since %d/%f was not used as the working directory, so that makes sense.

When I did give it the %d/%f I got this error:
Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"

But that is the correct path so I don't know what it isn't liking.

The "shebang" in the script with the correct path to python so it I should not have to add python to the command.

Thanks for your help.