summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-10-03 19:12:15 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-10-03 19:12:15 +0800
commit386c0bf61c1ce647e3792af88ee1adab8393aedd (patch)
tree54ad3d47b6c200ed59044f2bc1b8697115132933
parentecb3f104ef07e1d08b1562396a1d57cb89945d4f (diff)
downloadibus-386c0bf61c1ce647e3792af88ee1adab8393aedd.tar.gz
ibus-386c0bf61c1ce647e3792af88ee1adab8393aedd.tar.xz
ibus-386c0bf61c1ce647e3792af88ee1adab8393aedd.zip
Rename config.py.in to _config.py.in
-rw-r--r--configure.ac2
-rw-r--r--ibus/Makefile.am3
-rw-r--r--ibus/__init__.py2
-rw-r--r--ibus/_config.py.in35
4 files changed, 39 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e5f1813..8d0b685 100644
--- a/configure.ac
+++ b/configure.ac
@@ -222,7 +222,7 @@ fi
AC_CONFIG_FILES([ po/Makefile.in
Makefile
ibus.spec
-ibus/config.py
+ibus/_config.py
ibus/Makefile
ibus/interface/Makefile
daemon/Makefile
diff --git a/ibus/Makefile.am b/ibus/Makefile.am
index df8b4d0..ebfa494 100644
--- a/ibus/Makefile.am
+++ b/ibus/Makefile.am
@@ -42,12 +42,13 @@ ibus_PYTHON = \
property.py \
utility.py \
config.py \
+ _config.py \
$(NULL)
ibusdir = @pkgpythondir@
EXTRA_DIST = \
- config.py.in \
+ _config.py.in \
$(NULL)
CLEANFILES = \
diff --git a/ibus/__init__.py b/ibus/__init__.py
index 2b0e63f..d48ea74 100644
--- a/ibus/__init__.py
+++ b/ibus/__init__.py
@@ -32,5 +32,5 @@ from utility import *
from engine import *
from factory import *
from panel import *
-from config import *
+from _config import *
diff --git a/ibus/_config.py.in b/ibus/_config.py.in
new file mode 100644
index 0000000..ccd2ff5
--- /dev/null
+++ b/ibus/_config.py.in
@@ -0,0 +1,35 @@
+# vim:set et sts=4 sw=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+# Boston, MA 02111-1307 USA
+
+__all__ = (
+ "get_version",
+ "get_copyright",
+ "get_license"
+)
+
+def get_version():
+ return "@PACKAGE_VERSION@"
+
+def get_copyright():
+ return "Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>"
+
+def get_license():
+ return "LGPL"