Skip to content

Commit

Permalink
[NFC] Use an absolute path for configs when running butler scripts. (#…
Browse files Browse the repository at this point in the history
…4437)

Some parts of CF will chdir, breaking relative paths.
  • Loading branch information
jonathanmetzman authored Nov 26, 2024
1 parent 26fa37a commit 18a9070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/local/butler/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 18a9070

Please sign in to comment.