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-27 08:37:43 +02:00
committed by Oliver Smith
parent c5b66e4090
commit 93c04ff4a6
@@ -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: