Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 0bf49e7

Browse files
committed
Update clr.py
1 parent 170f33d commit 0bf49e7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clr.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ def _load_clr():
2727
if sys.platform == "win32":
2828
path = _get_netfx_path()
2929
else:
30-
try:
31-
path = _get_mono_path()
32-
except IndexError:
33-
# no files compiles for mono
34-
path = _get_netfx_path()
30+
# only mono works on Windows
31+
path = _get_mono_path()
3532

3633
del sys.modules[__name__]
3734

0 commit comments

Comments
 (0)