]> granicus.if.org Git - graphviz/commitdiff
make gen_version run correctly regardless of CWD
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 18:20:32 +0000 (11:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 18:47:27 +0000 (11:47 -0700)
gen_version.py

index bc4c11d96570c095a7bf475055ac358aacf87d02..b629903c78c71adc7dcecfa7f0607ed6fe5244ef 100644 (file)
@@ -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',