<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/tests/Kbase_dir, branch v1.0.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v1.0.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v1.0.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2015-06-07T15:46:11Z</updated>
<entry>
<title>Do not require $srctree to be set for non-kernel projects.</title>
<updated>2015-06-07T15:46:11Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-06-07T14:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=d56e9c1d4c3e6f560382ac71fa2419b2a9bef1cb'/>
<id>urn:sha1:d56e9c1d4c3e6f560382ac71fa2419b2a9bef1cb</id>
<content type='text'>
(It was never required if you explicitly passed a 'base_dir', but it's a
bit silly to have to do that too.)

This is a bug. I expected os.path.expandvars() to replace references
non-set environment variables with nothing, but it leaves them as is.

Work around it by letting base_dir = None be special and the default. It
uses $srctree if set and the current directory otherwise. This has the
following advantages:

 - It avoids having to reimplement a different version of
   os.path.expandvars() and special-casing "" to mean the current
   directory.

 - It means '$' can appear in paths. (Though it probably never will.)

Maybe the expansion behavior could be removed too, but keep it for now
to be backwards compatible.
</content>
</entry>
</feed>
