Skip to content

Why does meson.project_source_root return nothing, instead of the promised absolute dir path? #14112

Closed Answered by bonzini
metaleap asked this question in Q&A
Discussion options

You must be logged in to vote

"join" is not the same as Python's os.path.join, it's the same as String.join. You have

meson.project_source_root().join('foo')

After listify-ing the arguments:

meson.project_source_root().join(['foo'])

And this is just 'foo'.

Instead you want

meson.project_source_root() / 'foo'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@metaleap
Comment options

Answer selected by bonzini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants