importsysifsys.version_info[:2]>=(3,8):# TODO: Import directly (no need for conditional) when `python_requires = >= 3.8`fromimportlib.metadataimportPackageNotFoundError,version# pragma: no coverelse:fromimportlib_metadataimportPackageNotFoundError,version# pragma: no covertry:# Change here if project is renamed and does not equal the package namedist_name=__name____version__=version(dist_name)exceptPackageNotFoundError:# pragma: no cover__version__="unknown"finally:delversion,PackageNotFoundErrorfrom.initializeimportinitializefrom.InitializedMatriximportInitializedMatrix
[docs]defincludes()->str:"""Provides access to mattress C++ headers. Returns: str: Path to a directory containing the mattress header. """importosimportinspectdirname=os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))returnos.path.join(dirname,"include")