(src_dir)
| 3 | import subprocess |
| 4 | |
| 5 | def get_git_commit(src_dir): |
| 6 | try: |
| 7 | return subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=src_dir).decode('ascii').strip() |
| 8 | except Exception: |
| 9 | return 'unknown' |
| 10 | |
| 11 | def get_mge_version(version_txt_path): |
| 12 | v = {} |