diff options
Diffstat (limited to 'src/_cffi_src/openssl/osrandom_engine.py')
| -rw-r--r-- | src/_cffi_src/openssl/osrandom_engine.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/_cffi_src/openssl/osrandom_engine.py b/src/_cffi_src/openssl/osrandom_engine.py index a8479b07..ed1068ef 100644 --- a/src/_cffi_src/openssl/osrandom_engine.py +++ b/src/_cffi_src/openssl/osrandom_engine.py @@ -6,9 +6,9 @@ from __future__ import absolute_import, division, print_function import os -with open(os.path.join( - os.path.dirname(__file__), "src/osrandom_engine.h" -)) as f: +HERE = os.path.dirname(os.path.abspath(__file__)) + +with open(os.path.join(HERE, "src/osrandom_engine.h")) as f: INCLUDES = f.read() TYPES = """ @@ -20,12 +20,5 @@ FUNCTIONS = """ int Cryptography_add_osrandom_engine(void); """ -MACROS = """ -""" - -with open(os.path.join( - os.path.dirname(__file__), "src/osrandom_engine.c" -)) as f: +with open(os.path.join(HERE, "src/osrandom_engine.c")) as f: CUSTOMIZATIONS = f.read() - -CONDITIONAL_NAMES = {} |
