Skip to content

Commit

Permalink
Merge pull request grpc#8064 from kpayson64/cygrpc_remove_hardcode
Browse files Browse the repository at this point in the history
Load roots.pem relative to current file
  • Loading branch information
kpayson64 authored Sep 15, 2016
2 parents 8e6d871 + 0651759 commit 78bb9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/grpcio/grpc/_cython/_cygrpc/security.pyx.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import pkg_resources
cdef grpc_ssl_roots_override_result ssl_roots_override_callback(
char **pem_root_certs) with gil:
temporary_pem_root_certs = pkg_resources.resource_string(
'grpc._cython', '_credentials/roots.pem')
__name__.rstrip('.cygrpc'), '_credentials/roots.pem')
pem_root_certs[0] = <char *>gpr_malloc(len(temporary_pem_root_certs) + 1)
memcpy(
pem_root_certs[0], <char *>temporary_pem_root_certs,
Expand Down

0 comments on commit 78bb9a3

Please sign in to comment.