MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / get_include

Function get_include

python/dolfinx/__init__.py:63–72  ·  view source on GitHub ↗
(user=False)

Source from the content-addressed store, hash-verified

61
62
63def get_include(user=False):
64 import os
65
66 d = os.path.dirname(__file__)
67 if os.path.exists(os.path.join(d, "wrappers")):
68 # Package is installed
69 return os.path.join(d, "wrappers")
70 else:
71 # Package is from a source directory
72 return os.path.join(os.path.dirname(d), "src")
73
74
75__all__ = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected