[gedit/libgpe: 19/21] Add dummy modules to be able to import gedit.commands and gedit.utils
- From: Steve Frécinaux <sfre src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/libgpe: 19/21] Add dummy modules to be able to import gedit.commands and gedit.utils
- Date: Thu, 5 Nov 2009 07:45:22 +0000 (UTC)
commit 380778ae6374ee0cbf8d8432c8840043df48c65c
Author: Steve Frécinaux <code istique net>
Date: Wed Nov 4 21:50:49 2009 +0100
Add dummy modules to be able to import gedit.commands and gedit.utils
This is needed for backward compatibility with existing plugins that try
to import those modules (importing them is not necessary anymore).
bindings/python/Makefile.am | 4 +++-
bindings/python/commands.py | 22 ++++++++++++++++++++++
bindings/python/utils.py | 22 ++++++++++++++++++++++
3 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index a22a0b6..2b7bbf3 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -3,7 +3,9 @@
pymoduledir = $(libdir)/gedit-2/python/gedit
pymodule_PYTHON = \
- __init__.py
+ __init__.py \
+ commands.py \
+ utils.py
pymodule_LTLIBRARIES = \
_gedit.la
diff --git a/bindings/python/commands.py b/bindings/python/commands.py
new file mode 100644
index 0000000..234437c
--- /dev/null
+++ b/bindings/python/commands.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# Gedit Python bindings
+# Copyright (C) 2009 Steve Frécinaux
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# Import everything from the binary module
+from gedit import _gedit
+from gedit._gedit.commands import *
diff --git a/bindings/python/utils.py b/bindings/python/utils.py
new file mode 100644
index 0000000..b63b505
--- /dev/null
+++ b/bindings/python/utils.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# Gedit Python bindings
+# Copyright (C) 2009 Steve Frécinaux
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# Import everything from the binary module
+from gedit import _gedit
+from gedit._gedit.utils import *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]