File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from . import _altdss_capi_loader
88from ._altdss_capi_loader import ffi , lib as loader_lib
99from pathlib import Path
10+ from . import DLL_SUFFIX , DLL_PREFIX
1011
1112altdss_lib_parent_path = Path (_altdss_capi_loader .__file__ ).absolute ().parent
1213
1314if os .environ .get ('DSS_EXTENSIONS_DEBUG' , '' ) != '1' :
14- oddie_lib_path = altdss_lib_parent_path .joinpath ('libaltdss_oddie_capi.so ' )
15+ oddie_lib_path = altdss_lib_parent_path .joinpath (f' { DLL_PREFIX } altdss_oddie_capi { DLL_SUFFIX } ' )
1516else :
1617 import warnings
1718 warnings .warn ('Environment variable DSS_EXTENSIONS_DEBUG=1 is set: loading the debug version of the AltDSS Oddie library' )
18- oddie_lib_path = altdss_lib_parent_path .joinpath ('libaltdss_oddie_capid.so ' )
19+ oddie_lib_path = altdss_lib_parent_path .joinpath (f' { DLL_PREFIX } altdss_oddie_capid { DLL_SUFFIX } ' )
1920
2021if not oddie_lib_path .exists ():
2122 print (oddie_lib_path )
You can’t perform that action at this time.
0 commit comments