Skip to content

Commit 18a9070

Browse files
[NFC] Use an absolute path for configs when running butler scripts. (#4437)
Some parts of CF will chdir, breaking relative paths.
1 parent 26fa37a commit 18a9070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local/butler/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def execute(args):
3030
sys.path.insert(0, os.path.abspath(os.path.join('src', 'appengine')))
3131
sys.path.insert(
3232
0, os.path.abspath(os.path.join('src', 'appengine', 'third_party')))
33-
os.environ['CONFIG_DIR_OVERRIDE'] = args.config_dir
33+
os.environ['CONFIG_DIR_OVERRIDE'] = os.path.abspath(args.config_dir)
3434
local_config.ProjectConfig().set_environment()
3535

3636
if args.local:

0 commit comments

Comments
 (0)