[gedit-latex] Move base/config.py to root dir



commit 9371b1c04d3fa9a270f527dd6ddfc848bd93c5b9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Oct 5 13:42:36 2011 +0200

    Move base/config.py to root dir

 latex/Makefile.am          |    1 +
 latex/base/Makefile.am     |    1 -
 latex/{base => }/config.py |   18 +++++++++---------
 latex/tabdecorator.py      |    2 +-
 latex/windowactivatable.py |    2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/latex/Makefile.am b/latex/Makefile.am
index 0fb5f36..d680a72 100644
--- a/latex/Makefile.am
+++ b/latex/Makefile.am
@@ -5,6 +5,7 @@ plugindir = $(libdir)/gedit/plugins/latex
 plugin_PYTHON = \
 	appactivatable.py \
 	completion.py \
+	config.py \
 	editor.py \
 	file.py \
 	gldefs.py \
diff --git a/latex/base/Makefile.am b/latex/base/Makefile.am
index c700171..fdd9e77 100644
--- a/latex/base/Makefile.am
+++ b/latex/base/Makefile.am
@@ -2,7 +2,6 @@ plugindir = $(libdir)/gedit/plugins/latex/base
 
 plugin_PYTHON = \
 	action.py \
-	config.py \
 	__init__.py
 
 -include $(top_srcdir)/git.mk
diff --git a/latex/base/config.py b/latex/config.py
similarity index 89%
rename from latex/base/config.py
rename to latex/config.py
index 8201bc1..ae49084 100644
--- a/latex/base/config.py
+++ b/latex/config.py
@@ -23,7 +23,7 @@ base.config
 """
 
 # actions
-from ..latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction, \
+from .latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction, \
         LaTeXListMenuAction, LaTeXListActionDefault, \
         LaTeXItemizeAction, LaTeXEnumerateAction, LaTeXFontFamilyAction, LaTeXFontFamilyMenuAction, LaTeXBoldAction, \
         LaTeXItalicAction, LaTeXEmphasizeAction, LaTeXDescriptionAction, LaTeXStructureMenuAction, LaTeXPartAction, LaTeXChapterAction, \
@@ -36,7 +36,7 @@ from ..latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAc
         LaTeXCaligraphyAction, LaTeXFrakturAction, LaTeXBuildImageAction, LaTeXSaveAsTemplateAction, \
         LaTeXBuildAction, LaTeXBuildMenuAction
 
-from ..bibtex.actions import BibTeXMenuAction, BibTeXNewEntryAction
+from .bibtex.actions import BibTeXMenuAction, BibTeXNewEntryAction
 
 ACTIONS = [LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction,
         LaTeXListMenuAction, LaTeXListActionDefault,
@@ -53,12 +53,12 @@ ACTIONS = [LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction,
         BibTeXMenuAction, BibTeXNewEntryAction]
 
 # views
-from ..views import IssueView
-from ..latex.views import LaTeXSymbolMapView, LaTeXOutlineView
-from ..bibtex.views import BibTeXOutlineView
-from ..tools.views import ToolView
+from .views import IssueView
+from .latex.views import LaTeXSymbolMapView, LaTeXOutlineView
+from .bibtex.views import BibTeXOutlineView
+from .tools.views import ToolView
 
-from ..preferences import Preferences
+from .preferences import Preferences
 LATEX_EXTENSIONS = Preferences().get("latex-extensions").split(",")
 BIBTEX_EXTENSIONS = [".bib"]
 
@@ -72,8 +72,8 @@ for e in BIBTEX_EXTENSIONS:
 
 
 # editors
-from ..latex.editor import LaTeXEditor
-from ..bibtex.editor import BibTeXEditor
+from .latex.editor import LaTeXEditor
+from .bibtex.editor import BibTeXEditor
 
 EDITORS = [LaTeXEditor, BibTeXEditor]
 
diff --git a/latex/tabdecorator.py b/latex/tabdecorator.py
index 94a70a6..054b9e0 100644
--- a/latex/tabdecorator.py
+++ b/latex/tabdecorator.py
@@ -29,7 +29,7 @@ import logging
 
 from gi.repository import Gedit, Gtk, Gio, GObject
 
-from .base.config import EDITORS
+from .config import EDITORS
 from .file import File
 
 # TODO: maybe create ActionDelegate for GeditWindowDecorator
diff --git a/latex/windowactivatable.py b/latex/windowactivatable.py
index 7c344f7..a0bd09f 100644
--- a/latex/windowactivatable.py
+++ b/latex/windowactivatable.py
@@ -34,7 +34,7 @@ from .tools import ToolAction
 from .resources import Resources
 from .file import File
 from .panelview import PanelView
-from .base.config import EDITOR_SCOPE_VIEWS, ACTIONS
+from .config import EDITOR_SCOPE_VIEWS, ACTIONS
 from .tabdecorator import GeditTabDecorator
 from .base import WindowContext
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]