Configure the YAK Pro configuration loading algorithm
masterYAK Pro searches for configuration files using a specific hierarchy. The first one found is used.
Search Order
- The file specified by the
--config-fileargument. - The file specified by the
YAKPRO_PO_CONFIG_FILEenvironment variable. - The filename specified by
YAKPRO_PO_CONFIG_FILENAMEenvironment variable, oryakpro-po.cnfas default.
Directory Search Priority
If no environment variable is set, the tool searches for the config file in this order:
YAKPRO_PO_CONFIG_DIRECTORY(environment variable)- Current working directory
current_working_directory/config- Home directory
home_directory/config/usr/local/YAK/yakpro-posource_code_directory/default_conf_filename
Best Practice: Do not modify the default yakpro-po.cnf in the repository as it will be overwritten during updates. Instead, create your own copy in your project's root directory.