Commit 70ccf23f authored by leroux's avatar leroux Committed by Austin Seipp
Browse files

fingerprint.py: Invoke 'perl' manually (#8283)



This fixes the fingerprint script on windows, since we can't rely on
using '#!/usr/bin/perl'
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent bc8a5e14
......@@ -55,7 +55,12 @@ def fingerprint(source=None):
`sync-all` command will be run to get the current fingerprint.
"""
if source is None:
if sys.platform == 'win32':
# Can't rely on perl being located at `/usr/bin/perl`.
sync_all = ["perl", "./sync-all", "log", "-1", "--pretty=oneline"]
else:
sync_all = ["./sync-all", "log", "-1", "--pretty=oneline"]
source = Popen(sync_all, stdout=PIPE).stdout
lib = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment