Skip to content
Snippets Groups Projects
Verified Commit b9f50d7c authored by Ole Binder's avatar Ole Binder
Browse files

Refactor: rename config to config_file

parent 4e9895b0
No related branches found
No related tags found
1 merge request!17Yaml configuration file
......@@ -17,20 +17,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# READ INI FILE
%include "readini.liq"
default_config = "../config/engine-core.ini"
config =
%include "parse_yaml.liq"
default_config = "../config/engine-core.yaml"
config_file =
list.hd(
default=default_config,
process.read.lines(
"ls /etc/aura/engine-core.ini"
"ls /etc/aura/engine-core.yaml"
)
)
print(
"\tConfig file: '#{config}'"
"\tConfig file: '#{config_file}'"
)
ini = read_ini(config)
engine_config_folder = string.split(separator="/engine-core.ini", config)
ini = read_ini(config_file)
engine_config_folder = string.split(separator="/engine-core.ini", config_file)
engine_config_folder = list.nth(default="../config/", engine_config_folder, 0)
print(
"\tengine_config_folder = '#{engine_config_folder}'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment