Skip to content

Commit 7fdb4b0

Browse files
Merge pull request #26 from webui-dev/import_error
fixed module not found error
2 parents 638803d + 24c07a5 commit 7fdb4b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

PyPI/Package/src/webui/load_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _download_library():
5656

5757

5858
# Load WebUI Dynamic Library
59-
def _load_library() -> CDLL:
59+
def load_library() -> CDLL:
6060
library: CDLL | None = None
6161
lib_path = _get_library_path()
6262
if not os.path.exists(lib_path):

PyPI/Package/src/webui/webui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from ctypes import *
1717

1818
# Import all the raw bindings
19-
import webui_bindings as _raw
19+
from . import webui_bindings as _raw
2020

2121

2222

PyPI/Package/src/webui/webui_bindings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import sys
44
from ctypes import *
5-
from load_library import _load_library
5+
from . import load_library as ll
66
import enum
77

88
# WebUI Library
@@ -15,7 +15,7 @@
1515

1616

1717
# Loading the library in for bindings
18-
lib: CDLL | None = _load_library()
18+
lib: CDLL | None = ll.load_library()
1919
if lib is None:
2020
print('WebUI Dynamic Library not found.')
2121
sys.exit(1)

0 commit comments

Comments
 (0)