Skip to content

Commit

Permalink
Change oblib backend
Browse files Browse the repository at this point in the history
Replacing to threading allow to use cx_freeze to compile it to .exe
  • Loading branch information
NicolasGrosjean authored Jun 15, 2024
1 parent 4ceb67d commit 333e265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update_paratranz.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __create_or_update_file(token: str, project_id: int, filepath: str, file_rel
for root, _, files in os.walk(os.path.join(args.loc_dir, args.language)):
for file in files:
all_files.append(os.path.join(root, file))
Parallel(n_jobs=args.parallel_nb, backend="multiprocessing")(
Parallel(n_jobs=args.parallel_nb, backend="threading")(
delayed(create_or_update_file)(args.token, args.project_id, args.loc_dir, args.language, file_path, current_files)
for file_path in all_files)
print(f"Total time of the execution: {compute_time(start)}")

0 comments on commit 333e265

Please sign in to comment.