Skip to content

Commit 7b87858

Browse files
committed
added location.
1 parent 3788e55 commit 7b87858

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/copy_spec.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ def main(bucket_name: str, repo_name: str, working_directory:str):
2424
cwd = os.getcwd()
2525
print("Current working directory:", cwd)
2626

27-
os.chdir(working_directory)
28-
cmdNew = os.getcwd()
29-
print("New working directory:", cmdNew)
30-
27+
# Go up one level to reach utils/
28+
utils_dir = os.path.dirname(os.cmd())
29+
print("Utils directory:", utils_dir)
30+
3131
json_file = f"{repo_name}.json"
32-
print(f"[INFO] Found JSON file: {json_file}")
3332

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

36-
upload_to_s3(json_file, bucket_name, repo_name)
36+
upload_to_s3(json_path, bucket_name, repo_name)
3737

3838
print("[DONE] Processing complete.")
3939
return 0

0 commit comments

Comments
 (0)