Hash :
a07672d3
Author :
Date :
2020-07-04T14:12:55
[py] minor, replace os.environ.get with os.getenv
#!/usr/bin/env python3
import os, subprocess
from pathlib import Path
outfile = Path(
os.getenv ('MESON_DIST_ROOT')
or os.getenv ('MESON_SOURCE_ROOT')
or Path(__file__).parent
) / '.tarball-revision'
with open(outfile, 'wb') as f:
f.write(subprocess.check_output(['git', 'log', '--no-color', '--no-decorate', 'HEAD~..HEAD']))