Skip to content
Snippets Groups Projects
Unverified Commit 93c04ff4 authored by Newbyte's avatar Newbyte :snowflake: Committed by Oliver Smith
Browse files

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

Not related to the deprecation fixes.

[ci:skip-build]: already built successfully in CI
parent c5b66e40
No related branches found
No related tags found
No related merge requests found
Pipeline #205696 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment