Skip to content

Commit

Permalink
(fix) path to header for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Dec 20, 2023
1 parent 90f33ab commit 9022b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _find_lib():
ffi.dlopen('secp256k1')
include_path = subprocess.check_output(['pkg-config', '--static', '--cflags-only-I', 'libsecp256k1']) # noqa S603
include_path = include_path.decode('UTF-8').strip().split()[0][2:]
return os.path.exists(f'{include_path}/secp256k1_ecdh.h')
return os.path.exists(os.path.join(include_path, 'secp256k1_ecdh.h'))
except OSError:
if 'LIB_DIR' in os.environ:
for path in glob.glob(os.path.join(os.environ['LIB_DIR'], '*secp256k1*')):
Expand Down

0 comments on commit 9022b08

Please sign in to comment.