Sign in
android
/
platform
/
external
/
pytorch
/
9ebfece900
/
.
/
.jenkins
/
perf_test
/
update_commit_hash.py
blob: ee7fa8a9b090e9bd6d4b39b02e231d2098f75e8a [
file
] [
log
] [
blame
]
import
sys
import
json
data_file_path
=
sys
.
argv
[
1
]
commit_hash
=
sys
.
argv
[
2
]
with
open
(
data_file_path
)
as
data_file
:
data
=
json
.
load
(
data_file
)
data
[
'commit'
]
=
commit_hash
with
open
(
data_file_path
,
'w'
)
as
data_file
:
json
.
dump
(
data
,
data_file
)