CI: don't shadow built-in dir function (MR 4500)

Not related to the deprecation fixes.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Stefan Hansson 2023-10-21 15:07:38 +02:00 committed by Oliver Smith
parent c5b66e4090
commit 93c04ff4a6
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -24,9 +24,9 @@ def path_pmbootstrap():
sys.exit(1)
# Resolve the symlink and verify the folder
dir = os.path.dirname(os.path.realpath(bin))
if os.path.exists(dir + "/pmb/__init__.py"):
return dir
directory = os.path.dirname(os.path.realpath(bin))
if os.path.exists(directory + "/pmb/__init__.py"):
return directory
directories = getsitepackages()
for directory in directories: