Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find config file when executet from another directory #3

Open
goermezer opened this issue Apr 3, 2019 · 1 comment
Open

Comments

@goermezer
Copy link

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.

@psyciknz
Copy link
Owner

psyciknz commented Apr 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants