- 1). Open your Python program in your Python editor of choice.
- 2). Scroll to the location where you need to include a header file.
- 3). Type "Extension('Function',['FunctionFile.c'], include_dirs=['includeDirectory'])" at the top of your Python file. In this example, the name of the function that requires the "includeDirectory" is "Function," and the name of the included file that is required is "FunctionFile.c."
- 4). Save your Python file.
SHARE