blob: 0f5bebdb4a4e9a0faf3743284efedcfc976e25af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Index: obexftp-0.24-Source/swig/python/CMakeLists.txt
===================================================================
--- obexftp-0.24-Source.orig/swig/python/CMakeLists.txt
+++ obexftp-0.24-Source/swig/python/CMakeLists.txt
@@ -36,13 +36,13 @@ swig_link_libraries ( obexftp-python
#
execute_process (
COMMAND ${PYTHON_EXECUTABLE} -c
- "import site, sys; sys.stdout.write(site.PREFIXES[-1])"
+ "import site, sys; sys.stdout.write(site.PREFIXES[0])"
OUTPUT_VARIABLE PYTHON_PREFIX
)
file ( TO_CMAKE_PATH "${PYTHON_PREFIX}" PYTHON_PREFIX )
execute_process (
COMMAND ${PYTHON_EXECUTABLE} -c
- "import site, sys; sys.stdout.write(site.getsitepackages()[-1])"
+ "import site, sys; sys.stdout.write(site.getsitepackages()[0])"
OUTPUT_VARIABLE PYTHON_SITE_DIR
)
file ( TO_CMAKE_PATH "${PYTHON_SITE_DIR}" PYTHON_SITE_DIR )
|