From 73d503995a358f90d1d575009db802a81847413c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 7 Dec 2021 14:45:37 -0800 Subject: [PATCH] scripts: Fix running compare-settings-to-template from any CWD. This matches the number of dirname() calls for other files in its directory. Fixes #20489. --- scripts/setup/compare-settings-to-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup/compare-settings-to-template b/scripts/setup/compare-settings-to-template index 805e8d7cca..6dc7baa9d2 100755 --- a/scripts/setup/compare-settings-to-template +++ b/scripts/setup/compare-settings-to-template @@ -5,7 +5,7 @@ import os import re import sys -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(BASE_DIR) from scripts.lib.setup_path import setup_path