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 @@ ...@@ -17,20 +17,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# READ INI FILE # READ INI FILE
%include "readini.liq" %include "parse_yaml.liq"
default_config = "../config/engine-core.ini" default_config = "../config/engine-core.yaml"
config = config_file =
list.hd( list.hd(
default=default_config, default=default_config,
process.read.lines( process.read.lines(
"ls /etc/aura/engine-core.ini" "ls /etc/aura/engine-core.yaml"
) )
) )
print( print(
"\tConfig file: '#{config}'" "\tConfig file: '#{config_file}'"
) )
ini = read_ini(config) ini = read_ini(config_file)
engine_config_folder = string.split(separator="/engine-core.ini", config) engine_config_folder = string.split(separator="/engine-core.ini", config_file)
engine_config_folder = list.nth(default="../config/", engine_config_folder, 0) engine_config_folder = list.nth(default="../config/", engine_config_folder, 0)
print( print(
"\tengine_config_folder = '#{engine_config_folder}'" "\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