Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaadc22

Browse files
authored
Ensure thatload only runs once
Fixes#2078.
1 parent1729698 commitbaadc22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎pythonnet/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def load(runtime: Union[clr_loader.Runtime, str, None] = None, **params: str) ->
142142

143143
iffunc(b"")!=0:
144144
raiseRuntimeError("Failed to initialize Python.Runtime.dll")
145+
146+
_LOADED=True
145147

146148
importatexit
147149

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp