Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion webview/platforms/edgechromium.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import winreg
from threading import Semaphore

import clr
try:
import clr
except:
os.environ['PYTHONNET_RUNTIME']='coreclr'
import clr

from webview import Window, _state
from webview import settings as webview_settings
Expand Down
7 changes: 6 additions & 1 deletion webview/platforms/mshtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
from ctypes import windll
from threading import Semaphore

import clr
try:
import clr
except:
import os
os.environ['PYTHONNET_RUNTIME']='coreclr'
import clr

from webview import _state
from webview.util import (
Expand Down
6 changes: 5 additions & 1 deletion webview/platforms/winforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from platform import machine
from threading import Event, Semaphore

import clr
try:
import clr
except:
os.environ['PYTHONNET_RUNTIME']='coreclr'
import clr

from webview import FileDialog, _state, settings, windows
from webview.guilib import forced_gui_
Expand Down
Loading