How to add Atom to PATH in Ubuntu?

I want to run Python scripts from Atom
I installed the script package. When I try to run a script, I get the error:

# Unable to run


## Did you start Atom from the command line?

atom .

## Is it in your PATH?

PATH: /home/apple/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I think I need to add something to the .bashrc file. What do I put in the .bashrc file exactly? I cannot figure it out.

Who would have thought, you’re not the first one asking

I have added the following to the .profile… still cannot get Atom to execute Python scripts. What am I missing?

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then


Did you install Python? Does the PATH include the location where the Python binary is stored?

In packages-script-command write python3 and see of that works.