Skip to content

Commit e9d4e1e

Browse files
committed
use only base name of file
1 parent 7c25913 commit e9d4e1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/upload_image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import argparse
1515
import hashlib
1616
import mimetypes
17+
import os
1718

1819
from google.cloud import storage
1920

@@ -34,7 +35,7 @@ def main() -> None:
3435
args = parser.parse_args()
3536

3637
hash = content_hash(args.path)
37-
object_name = f"{hash}_{args.path}"
38+
object_name = f"{hash}_{os.path.basename(args.path)}"
3839

3940
gcs = storage.Client()
4041
bucket = gcs.bucket("rerun-static-img")

0 commit comments

Comments
 (0)