Skip to content

Commit

Permalink
Use the ProactorEventLoop asyncio loop with tools on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Nov 26, 2023
1 parent 90e2a20 commit ed0dd78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import pathlib
import sys

if sys.platform.startswith("win"):
import asyncio

asyncio.set_event_loop_policy(asyncio.ProactorEventLoop())

import ptscripts
from ptscripts.parser import DefaultRequirementsConfig
from ptscripts.virtualenv import VirtualEnvConfig
Expand Down

0 comments on commit ed0dd78

Please sign in to comment.