I can run pianobar from command by typing pianobar and it loads the config file just fine. I want to run it from a python script or shell script and it runs  but it does not load the config file. Pianobar is a PATH that you can run from any directory and I don't know where the app is installed. I'm working on a GUI for Raspberry pi.
I found the answer, to run it from a shell do: sudo -u pi pianobar
How do I run pianobar (pandora) from a shell script with config access