From afee0fcc6a23da8ac31310606004fa42b6cf65a9 Mon Sep 17 00:00:00 2001 From: crownedgrouse Date: Thu, 14 Jun 2018 01:02:33 +0200 Subject: Included config files relative to sys.config dir Change the way included config files are searched in sys.config. Search first relative to sys.config directory, then relative to current working directory, for backward compatibility. This permit same result when using a sys.config file in a release or starting manually a node with -config. Credit to Siri Hansen for test case. --- lib/kernel/doc/src/config.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/kernel/doc/src') diff --git a/lib/kernel/doc/src/config.xml b/lib/kernel/doc/src/config.xml index fdb2d29f63..d331b755f5 100644 --- a/lib/kernel/doc/src/config.xml +++ b/lib/kernel/doc/src/config.xml @@ -86,8 +86,13 @@ File = string() Name of another .config file. Extension .config can be omitted. It is - recommended to use absolute paths. A relative path is - relative the current working directory of the emulator. + recommended to use absolute paths. If a relative path is used, + File is searched, first, relative from sys.config directory, then relative + to the current working directory of the emulator, for backward compatibility. + This allow to use a sys.config pointing out other .config files in a release + or in a node started manually using -config ... with same result whatever + the current working directory. +

When traversing the contents of sys.config and a filename is encountered, its contents are read and merged with the result -- cgit v1.2.3