Skip to content

Commit f5ba2f1

Browse files
committed
updated the json dir..
1 parent cd0f5ff commit f5ba2f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/copy_spec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def main(bucket_name: str, repo_name: str, working_directory:str):
2525
print("Current working directory:", cwd)
2626

2727
# Go up one level to reach utils/
28-
utils_dir = os.path.dirname(os.getcwd())
29-
print("Utils directory:", utils_dir)
28+
json_dir = os.path.dirname(os.path.dirname(os.getcwd()))
29+
print("Utils directory:", json_dir)
3030

3131
json_file = f"{repo_name}.json"
3232

3333
# Build path to JSON file
34-
json_path = os.path.join(utils_dir, json_file)
34+
json_path = os.path.join(json_dir, json_file)
3535

3636
upload_to_s3(json_path, bucket_name, repo_name)
3737

0 commit comments

Comments
 (0)