Try to find the file from path exported to JIRASYNC_SETTINGS_PATH
this variable can be a directory path like /foo/bar
and also can be full path like /etc/foo/config.yaml
XDG
Try to find in the XDG paths
look ~/.config/jirasync/config.yaml
then /etc/xdg/jirasync/config.yaml
then /etc/jirasync/config.yaml
Env var
Try to find the file from path exported to
JIRASYNC_SETTINGS_PATH
this variable can be a directory path like/foo/bar
and also can be full path like/etc/foo/config.yaml
XDG
Try to find in the XDG paths look
~/.config/jirasync/config.yaml
then/etc/xdg/jirasync/config.yaml
then/etc/jirasync/config.yaml
Local dir
Finally try to load from current directory.
Fail
Or raise IoError.