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: