You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/scripts/docs_modm_io_generator.py
+23-12Lines changed: 23 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,13 @@
19
19
importargparse
20
20
importdatetime
21
21
importplatform
22
-
importmultiprocessingasmp
22
+
importsubprocess
23
+
frommultiprocessing.poolimportThreadPool
23
24
frompathlibimportPath
24
25
fromjinja2importEnvironment, FileSystemLoader
25
26
fromcollectionsimportdefaultdict
26
27
28
+
is_running_on_macos="macOS"inplatform.platform()
27
29
defrepopath(path):
28
30
returnPath(__file__).absolute().parents[2] /path
29
31
defrelpath(path):
@@ -101,26 +103,32 @@ def main():
101
103
test_group.add_argument("--test2", "-t2", action='store_true', help="Test mode: generate only a few targets. List has targets from the real target list.")
102
104
parser.add_argument("--jobs", "-j", type=int, default=2, help="Number of parallel doxygen processes")
103
105
parser.add_argument("--local-temp", "-l", action='store_true', help="Create temporary directory inside current working directory")
parser.add_argument("--overwrite", "-f", action='store_true', help="Overwrite existing data in output directory (Removes all files from output directory.)")
108
110
parser.add_argument("--deduplicate", "-d", action='store_true', help="Deduplicate identical files with symlinks.")
111
+
parser.add_argument("--target-job", help="Create a single target from job string.")
109
112
args=parser.parse_args()
110
113
114
+
# Called by the thread pool below as a workaround for buggy multiprocessing
0 commit comments