CameraEvents icon indicating copy to clipboard operation
CameraEvents copied to clipboard

Can not find config file when executet from another directory

Open goermezer opened this issue 7 years ago • 1 comments

It seems, when executed from another directory, the script can not find the config file. I run it from crontab with absolute path to the script. At the moment I first have to change into the directory where CameraEvents.py is located and then I can start it.

Another finding is, that I can not stop the running script with CTRL+C. I have to kill it from the shell.

The script is quite useful. Thanks for creating it.

goermezer avatar Apr 03 '19 22:04 goermezer

It looks for configs in filename = {"config.ini","conf/config.ini"}

If you wanted to you could update (or add) to the filename dictionary your location. If that's a bit painful, we could add the config filename as an execution argument.

I run in Docker, so it's not an issue for me I've come across

psyciknz avatar Apr 04 '19 02:04 psyciknz