File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/gh/diffCheck/diffCheck Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3838import sys
3939
4040# -- Dlls/pyd imports ---------------------------------------------------------
41+ # Set the SPHINX_BUILD environment variable to not conflct with the import of
42+ # the pybind module and df_cvt_bindings from the diffCheck __init__.py
43+ os .environ ['SPHINX_BUILD' ] = '1'
44+
4145# import package's modules path and dlls/pyds, checking for import of pybind module
4246extra_dll_dir_doc = os .path .abspath ('./' )
4347extra_dll_dir_pysource = os .path .abspath ('./../src/gh/diffCheck' )
Original file line number Diff line number Diff line change 77extra_dll_dir = os .path .join (os .path .dirname (__file__ ), PATH_TO_DLL )
88os .add_dll_directory (extra_dll_dir )
99
10- # import the bindings
11- from . import diffcheck_bindings # type: ignore[attr-defined]
12- from . import df_cvt_bindings # type: ignore[attr-defined]
10+ if not os . getenv ( 'SPHINX_BUILD' , False ):
11+ from . import diffcheck_bindings # type: ignore[attr-defined]
12+ from . import df_cvt_bindings # type: ignore[attr-defined]
You can’t perform that action at this time.
0 commit comments