Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
1a060fd7
Commit
1a060fd7
authored
Apr 13, 2016
by
Wenzel Jakob
Browse files
function for retrieving the header file path (fixes #158)
parent
ef7a9b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pybind11/__init__.py
pybind11/__init__.py
+10
-0
No files found.
pybind11/__init__.py
View file @
1a060fd7
from
._version
import
version_info
,
__version__
from
._version
import
version_info
,
__version__
def
get_include
():
import
os
try
:
from
pip
import
locations
return
os
.
path
.
dirname
(
locations
.
distutils_scheme
(
'pybind11'
)[
'headers'
])
except
ImportError
:
return
'include'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment