summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-11-11 21:43:54 +0100
committerGravatar Jonathan Beck2009-11-11 21:43:54 +0100
commit7a136312614f4d853898d6e0ad96b69af2d232be (patch)
tree4abcc16d51cb73be19bff6efea16a49fc367f23d /swig
parente91836fb3169cbca7c58c2680b591ec7f081b6b3 (diff)
downloadlibplist-7a136312614f4d853898d6e0ad96b69af2d232be.tar.gz
libplist-7a136312614f4d853898d6e0ad96b69af2d232be.tar.bz2
Simplify 'libplist.PList' python module to 'plist'.
Diffstat (limited to 'swig')
-rw-r--r--swig/CMakeLists.txt14
-rw-r--r--swig/__init__.py4
-rw-r--r--swig/plist.i2
3 files changed, 11 insertions, 9 deletions
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index e71e6e8..379cb95 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -5,20 +5,20 @@ SET(CMAKE_SWIG_FLAGS -Werror -Wall -modern)
INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_PATH} )
SET_SOURCE_FILES_PROPERTIES(plist.i PROPERTIES CPLUSPLUS ON)
-SWIG_ADD_MODULE( PList python plist.i )
-SWIG_LINK_LIBRARIES( PList plist plist++ ${PYTHON_LIBRARIES} )
+SWIG_ADD_MODULE( plist python plist.i )
+SWIG_LINK_LIBRARIES( plist plist plist++ ${PYTHON_LIBRARIES} )
EXEC_PROGRAM("${PYTHON_EXECUTABLE}"
ARGS "-c 'try:\n import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1)\nexcept: pass\n'"
OUTPUT_VARIABLE DISTUTILS_PYTHON_ILIBRARY_PATH
)
-INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/_PList${CMAKE_SHARED_MODULE_SUFFIX}
- DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/libplist/ )
-INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/PList.py
- DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/libplist/ )
+INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/_plist${CMAKE_SHARED_MODULE_SUFFIX}
+ DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/plist/ )
+INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/plist.py
+ DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/plist/ )
INSTALL( FILES ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
- DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/libplist/ )
+ DESTINATION ${DISTUTILS_PYTHON_ILIBRARY_PATH}/plist/ )
INSTALL( FILES ${CMAKE_CURRENT_SOURCE_DIR}/plist.i
DESTINATION include/plist/swig COMPONENT dev)
diff --git a/swig/__init__.py b/swig/__init__.py
index 8d1c8b6..f4c0dbb 100644
--- a/swig/__init__.py
+++ b/swig/__init__.py
@@ -1 +1,3 @@
-
+# -*- coding: utf-8 -*-
+
+from plist import *
diff --git a/swig/plist.i b/swig/plist.i
index 925752e..278ca7a 100644
--- a/swig/plist.i
+++ b/swig/plist.i
@@ -1,5 +1,5 @@
/* swig.i */
- %module(package="libplist") PList
+ %module plist
%feature("autodoc", "1");
%{
/* Includes the header in the wrapper code */