diff --git a/src/socketify/loop.py b/src/socketify/loop.py index 348642e..ba51780 100644 --- a/src/socketify/loop.py +++ b/src/socketify/loop.py @@ -4,7 +4,7 @@ import threading import time from queue import Queue -from .native import UVLoop +from .uv import UVLoop def future_handler(future, loop, exception_handler, response): diff --git a/src/socketify/native/__init__.py b/src/socketify/native/__init__.py deleted file mode 100644 index 4001ef1..0000000 --- a/src/socketify/native/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .uv import UVLoop \ No newline at end of file diff --git a/src/socketify/native/uv.py b/src/socketify/uv.py similarity index 96% rename from src/socketify/native/uv.py rename to src/socketify/uv.py index 08b4f70..7b8f29c 100644 --- a/src/socketify/native/uv.py +++ b/src/socketify/uv.py @@ -54,7 +54,7 @@ void socketify_timer_set_repeat(socketify_timer* timer, uint64_t repeat); socketify_timer* socketify_create_check(socketify_loop* loop, socketify_timer_handler handler, void* user_data); void socketify_check_destroy(socketify_timer* timer); """) -library_path = os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "libsocketify.so")) +library_path = os.path.join(os.path.dirname(__file__), "libsocketify.so") lib = ffi.dlopen(library_path)