The script by command line works great without any error/exception. After lots of trying I've understood what blocks it.
My script (python2.7 with debian buster) starts with
Code: Select all
import os
import os.path
import json
prog_path = os.environ.get('prog_path')
Settings = os.path.join(prog_path, 'Settings.json')
export prog_path="/home/pi/programfldr/prog_path "
what I've found is that this line doesn't allow the script to run
Code: Select all
Settings = os.path.join(prog_path, 'Settings.json')
Can please someone help me to solve it?
Thanks a lot guys