Skip to content

Commit 849873b

Browse files
committed
Update
1 parent f21b5c0 commit 849873b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.jenkins/insert_last_verified.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@
66

77
from bs4 import BeautifulSoup
88

9-
# Check if the build directory is provided as an argument in the Makefile
10-
def main():
11-
if len(sys.argv) < 2:
12-
print("Error: Build directory not provided. Exiting.")
13-
exit(1)
14-
159
build_dir = sys.argv[1]
1610
print(f"Build directory: {build_dir}")
1711

1812
json_file_path = "tutorials-review-data.json"
19-
build_dir = "_build/html" # for testing after _build/html is created
13+
#build_dir = "_build/html" # for testing after _build/html is created
2014

2115
# paths to skip from the post-processing script
2216
paths_to_skip = [
@@ -157,5 +151,10 @@ def process_json_file(json_file_path):
157151
"can be ignored."
158152
)
159153

154+
def main():
155+
if len(sys.argv) < 2:
156+
print("Error: Build directory not provided. Exiting.")
157+
exit(1)
158+
160159
if __name__ == "__main__":
161160
main()

0 commit comments

Comments
 (0)