From 18a9070ea2500febae664f204296ba8f9184804f Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:38:41 -0500 Subject: [PATCH] [NFC] Use an absolute path for configs when running butler scripts. (#4437) Some parts of CF will chdir, breaking relative paths. --- src/local/butler/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local/butler/run.py b/src/local/butler/run.py index 05f80d4697..c9f3d0de78 100644 --- a/src/local/butler/run.py +++ b/src/local/butler/run.py @@ -30,7 +30,7 @@ def execute(args): sys.path.insert(0, os.path.abspath(os.path.join('src', 'appengine'))) sys.path.insert( 0, os.path.abspath(os.path.join('src', 'appengine', 'third_party'))) - os.environ['CONFIG_DIR_OVERRIDE'] = args.config_dir + os.environ['CONFIG_DIR_OVERRIDE'] = os.path.abspath(args.config_dir) local_config.ProjectConfig().set_environment() if args.local: