From 44b6ccbe569ec8125f1e95e43a5c449e77a04344 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Wed, 13 Feb 2019 10:32:27 -0500 Subject: join_paths => / [skip ci] --- docs/markdown/Syntax.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/markdown/Syntax.md') diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index aadb14afe..7802b92c9 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -214,12 +214,12 @@ pathsep = ':' path = pathsep.join(['/usr/bin', '/bin', '/usr/local/bin']) # path now has the value '/usr/bin:/bin:/usr/local/bin' -# For joining paths, you should use join_paths() +# For joining path elements, you should use path1 / path2 # This has the advantage of being cross-platform -path = join_paths(['/usr', 'local', 'bin']) +path = '/usr' / 'local' / 'bin' # path now has the value '/usr/local/bin' -# Don't use join_paths for sources files, use files for that: +# For sources files, use files(): my_sources = files('foo.c') ... my_sources += files('bar.c') -- cgit v1.2.3