CMake: pro2cmake.py: Handle $$PWD better
Change-Id: I2e28b652c60d3490138ae0548b32d010faccc5a4 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
This commit is contained in:
parent
6a834a0c59
commit
b9a3217c41
@ -550,6 +550,9 @@ class Scope(object):
|
|||||||
return [result]
|
return [result]
|
||||||
|
|
||||||
def expand(self, key: str) -> typing.List[str]:
|
def expand(self, key: str) -> typing.List[str]:
|
||||||
|
if key == 'PWD':
|
||||||
|
return os.path.relpath(self.currentdir, self.basedir)
|
||||||
|
|
||||||
value = self.get(key, [])
|
value = self.get(key, [])
|
||||||
result: typing.List[str] = []
|
result: typing.List[str] = []
|
||||||
assert isinstance(value, list)
|
assert isinstance(value, list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user