Skip to content
Snippets Groups Projects
Commit 110601d8 authored by Ken Payson's avatar Ken Payson
Browse files

Convert windows dll filename to bytes

parent b4028f66
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ def _initialize():
if 'win32' in sys.platform:
filename = pkg_resources.resource_filename(
'grpc._cython', '_windows/grpc_c.64.python')
if not isinstance(filename, bytes):
filename = filename.encode()
if not pygrpc_load_core(filename):
raise ImportError('failed to load core gRPC library')
if not pygrpc_initialize_core():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment