FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update clr.py · sdpython/pythonnet@0bf49e7 · GitHub

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

Repository navigation

Commit 0bf49e7

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

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL