Fixing git version detection.

This commit is contained in:
Ad5001 2024-10-11 19:06:15 +02:00
parent 84adc787e5
commit 5745587c72
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -29,7 +29,7 @@ if not is_release and which('git') is not None:
# Command to check date of latest git commit # Command to check date of latest git commit
cmd = ['git', 'log', '--format=%ci', '-n 1'] cmd = ['git', 'log', '--format=%ci', '-n 1']
cwd = realpath(join(dirname(__file__), '..')) # Root AccountFree directory. cwd = realpath(join(dirname(__file__), '..', '..', '..')) # Root LogarithmPlotter directory.
if exists(join(cwd, '.git')): if exists(join(cwd, '.git')):
date_str = check_output(cmd, cwd=cwd).decode('utf-8').split(' ')[0] date_str = check_output(cmd, cwd=cwd).decode('utf-8').split(' ')[0]
try: try: