Flexget/Flexget

config.yml location as a known field

jasonlyle88 asked for this feature over 1 year ago — 1 comment

jasonlyle88 commented over 1 year ago

It would be nice to have the (absolute) location of the flexget config file as a known field.

In my case, I have some utility scripts that I run with the exec command on accepted filesystem files. Instead of having to hardcode the path to the utility in the config.yml file, it would be nice if I could use {{flexgetConfigLocation}} or {{flexgetConfigFileLocation|pathdir}} or something of the sort.

I realize this can be accomplished by a) hard coding the value wherever it is used, b) using set to set the value then referencing it later, or c) using the variables plugin and putting it in a variables file. But this all essentially ends up as a hard coded value.

Join the discussion!

Sign-in with GitHub to comment