From 479c85cbf33807193fd1ac6a53c6e14005f686a7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 25 Oct 2020 11:20:32 -0700 Subject: [PATCH] make gen_version run correctly regardless of CWD --- gen_version.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gen_version.py b/gen_version.py index bc4c11d96..b629903c7 100644 --- a/gen_version.py +++ b/gen_version.py @@ -82,6 +82,7 @@ if not patch_version.isnumeric() or args.date_format: '--format=%cd', '--date=format-local:%Y-%m-%d %H:%M:%S' ], + cwd=os.path.abspath(os.path.dirname(__file__)), universal_newlines=True, ).strip(), '%Y-%m-%d %H:%M:%S', -- 2.40.0