Fix compare of Path objects

This commit is contained in:
Jochen Sprickerhof 2023-02-20 11:59:16 +01:00
parent deffe7ced3
commit 671d1eba4c
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433

View file

@ -971,7 +971,7 @@ def getvcs(vcstype, remote, local):
if vcstype == 'bzr': if vcstype == 'bzr':
return vcs_bzr(remote, local) return vcs_bzr(remote, local)
if vcstype == 'srclib': if vcstype == 'srclib':
if local != os.path.join('build', 'srclib', remote): if local != Path('build', 'srclib', remote):
raise VCSException("Error: srclib paths are hard-coded!") raise VCSException("Error: srclib paths are hard-coded!")
return getsrclib(remote, os.path.join('build', 'srclib'), raw=True) return getsrclib(remote, os.path.join('build', 'srclib'), raw=True)
if vcstype == 'svn': if vcstype == 'svn':