aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc
diff options
context:
space:
mode:
authorcrownedgrouse <[email protected]>2018-06-14 01:02:33 +0200
committercrownedgrouse <[email protected]>2018-06-14 22:23:54 +0200
commitafee0fcc6a23da8ac31310606004fa42b6cf65a9 (patch)
tree7879ba1f23cd870cb385afccd83243e6b15ffb7c /lib/kernel/doc
parentbbb3d151e6329d58b34e526fefb6964677d93104 (diff)
downloadotp-afee0fcc6a23da8ac31310606004fa42b6cf65a9.tar.gz
otp-afee0fcc6a23da8ac31310606004fa42b6cf65a9.tar.bz2
otp-afee0fcc6a23da8ac31310606004fa42b6cf65a9.zip
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.
Diffstat (limited to 'lib/kernel/doc')
-rw-r--r--lib/kernel/doc/src/config.xml9
1 files changed, 7 insertions, 2 deletions
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 @@
<tag><c>File = string()</c></tag>
<item>Name of another <c>.config</c> file.
Extension <c>.config</c> can be omitted. It is
- recommended to use absolute paths. A relative path is
- relative the current working directory of the emulator.</item>
+ recommended to use absolute paths. If a relative path is used,
+ <c>File</c> is searched, first, relative from <c>sys.config</c> directory, then relative
+ to the current working directory of the emulator, for backward compatibility.
+ This allow to use a <c>sys.config</c> pointing out other <c>.config</c> files in a release
+ or in a node started manually using <c>-config ...</c> with same result whatever
+ the current working directory.
+ </item>
</taglist>
<p>When traversing the contents of <c>sys.config</c> and a filename
is encountered, its contents are read and merged with the result