sb/pkgconfig: Fix python2 issue with caching changes

Closes #3893
This commit is contained in:
Chris Johns 2020-03-04 09:56:01 +11:00
parent ba97e7c5af
commit 9e49d20a30

View File

@ -214,7 +214,8 @@ class package(object):
prefix = default_prefix()
if prefix:
self._log('prefix: %s' % (prefix))
if type(prefix) is str:
if type(prefix) is str or type(prefix) is unicode:
prefix = str(prefix)
self.prefix = []
for p in prefix.split(os.pathsep):
self.prefix += [path.shell(p)]