From 93c04ff4a68c8c7afc46bc0dadd739df096d6a76 Mon Sep 17 00:00:00 2001 From: Stefan Hansson Date: Sat, 21 Oct 2023 15:07:38 +0200 Subject: [PATCH] CI: don't shadow built-in `dir` function (MR 4500) Not related to the deprecation fixes. [ci:skip-build]: already built successfully in CI --- .ci/testcases/add_pmbootstrap_to_import_path/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/testcases/add_pmbootstrap_to_import_path/__init__.py b/.ci/testcases/add_pmbootstrap_to_import_path/__init__.py index ebaff1a8d..5b3a01d01 100755 --- a/.ci/testcases/add_pmbootstrap_to_import_path/__init__.py +++ b/.ci/testcases/add_pmbootstrap_to_import_path/__init__.py @@ -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: