|
37 | 37 | import os
|
38 | 38 | import sys
|
39 | 39 |
|
| 40 | +# -- Dlls/pyd imports --------------------------------------------------------- |
40 | 41 | # import package's modules path and dlls/pyds, checking for import of pybind module
|
41 | 42 | extra_dll_dir_doc = os.path.abspath('./')
|
42 | 43 | extra_dll_dir_pysource = os.path.abspath('./../src/gh/diffCheck')
|
43 | 44 |
|
44 | 45 | os.add_dll_directory(extra_dll_dir_doc) # For finding DLL dependencies on Windows
|
45 | 46 | sys.path.insert(0, extra_dll_dir_doc)
|
46 | 47 | sys.path.insert(0, extra_dll_dir_pysource)
|
47 |
| -try: |
48 |
| - import diffCheck.diffcheck_bindings as dfb |
49 |
| -except ImportError as e: |
50 |
| - print(f"Failed to import diffcheck_bindings: {e}") |
51 |
| - print("Current sys.path directories:") |
52 |
| - for path in sys.path: |
53 |
| - print(path) |
54 |
| - print("Current files in the directory:") |
55 |
| - for file in os.listdir(extra_dll_dir_doc): |
56 |
| - print(file) |
57 |
| - sys.exit(1) |
58 |
| - |
59 |
| -# import diffCheck |
60 |
| -# print(f"Current diffCheck imported: {diffCheck.__version__}") |
61 |
| - |
62 |
| - |
63 |
| - |
64 |
| -# # Workaround to avoid expanding type aliases. See: |
65 |
| -# # https://github.com/sphinx-doc/sphinx/issues/6518#issuecomment-589613836 |
66 |
| -# from typing import ForwardRef |
67 |
| - |
68 |
| -# def _do_not_evaluate_in_diffCheck( |
69 |
| -# self, globalns, *args, _evaluate=ForwardRef._evaluate, |
70 |
| -# ): |
71 |
| -# if globalns.get('__name__', '').startswith('diffCheck'): |
72 |
| -# return self |
73 |
| -# return _evaluate(self, globalns, *args) |
74 |
| -# ForwardRef._evaluate = _do_not_evaluate_in_diffCheck |
| 48 | +# try: |
| 49 | +# import diffCheck.diffcheck_bindings as dfb |
| 50 | +# except ImportError as e: |
| 51 | +# print(f"Failed to import diffcheck_bindings: {e}") |
| 52 | +# print("Current sys.path directories:") |
| 53 | +# for path in sys.path: |
| 54 | +# print(path) |
| 55 | +# print("Current files in the directory:") |
| 56 | +# for file in os.listdir(extra_dll_dir_doc): |
| 57 | +# print(file) |
| 58 | +# sys.exit(1) |
75 | 59 |
|
76 | 60 | # -- Project information -----------------------------------------------------
|
77 | 61 |
|
|
0 commit comments