File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 6
6
7
7
from bs4 import BeautifulSoup
8
8
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
-
15
9
build_dir = sys .argv [1 ]
16
10
print (f"Build directory: { build_dir } " )
17
11
18
12
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
20
14
21
15
# paths to skip from the post-processing script
22
16
paths_to_skip = [
@@ -157,5 +151,10 @@ def process_json_file(json_file_path):
157
151
"can be ignored."
158
152
)
159
153
154
+ def main ():
155
+ if len (sys .argv ) < 2 :
156
+ print ("Error: Build directory not provided. Exiting." )
157
+ exit (1 )
158
+
160
159
if __name__ == "__main__" :
161
160
main ()
You can’t perform that action at this time.
0 commit comments