I am new to python and linux. Below is the issue I am having.
If I open terminal window and go to directory that has my .py file and run the script everything works fine.
If I try running the script from any other directory using path to the .py file I get an error saying it couldnt find the external config.py
file my script uses.
example:
My a.py
script and config.py
are in /home/pi/m
If I am in directory pi@raspberrypi:/home/pi/m
and call my .py file everything works
If I am in directory pi@raspberrypi:/
and run command python /home/pi/m/a.py
the script doesn't execute and states it can't find my config.py
file
What causes this behavior and how do I fix it?