Skip to content

Commit

Permalink
Merge pull request #854 from projectsyn/feat/multiprocessing-spawn
Browse files Browse the repository at this point in the history
Use multiprocessing start method `spawn` by default
  • Loading branch information
simu authored Sep 22, 2023
2 parents d80a948 + a6568e2 commit 9021d13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commodore/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

import multiprocessing

from pathlib import Path

import click
Expand Down Expand Up @@ -55,6 +57,8 @@ def commodore(ctx, working_dir, verbose):


def main():
multiprocessing.set_start_method("spawn")

load_dotenv(dotenv_path=find_dotenv(usecwd=True))
commodore.main(
prog_name="commodore", auto_envvar_prefix="COMMODORE", max_content_width=100
Expand Down

0 comments on commit 9021d13

Please sign in to comment.