Skip to content

Commit 6e15980

Browse files
authored
Merge pull request #175 from cloudblue/skip_uvloop_on_windows
setup uvloop only un *nix platforms
2 parents e8e42fd + 26ae305 commit 6e15980

File tree

3 files changed

+223
-224
lines changed

3 files changed

+223
-224
lines changed

connect/cli/ccli.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# This file is part of the Ingram Micro Cloud Blue Connect connect-cli.
44
# Copyright (c) 2019-2021 Ingram Micro. All Rights Reserved.
55
import click
6-
import uvloop
76

87
from connect.cli.core.base import cli
98
from connect.cli.core.constants import CAIRO_NOT_FOUND_ERROR
@@ -12,7 +11,11 @@
1211

1312
def main():
1413
_ignore_openpyxl_warnings()
15-
uvloop.install()
14+
try:
15+
import uvloop
16+
uvloop.install()
17+
except ImportError:
18+
pass
1619
print('')
1720
try:
1821
load_plugins(cli)

0 commit comments

Comments
 (0)