Ease importing of modules from the Common package

This commit is contained in:
René Stadler 2007-11-21 15:21:40 +02:00 committed by Stefan Sauer
parent e3410d3305
commit 5a0fff722b
2 changed files with 5 additions and 8 deletions

View file

@ -17,3 +17,4 @@
"""GStreamer development utilities common module"""
import Data, GUI, Main, utils

View file

@ -43,13 +43,7 @@ import gtk.glade
## import gnome # FIXME
import GstDebugViewer.Common.Data
import GstDebugViewer.Common.GUI
import GstDebugViewer.Common.Main
Common = GstDebugViewer.Common
from GstDebugViewer.Common import utils
from GstDebugViewer import Data, Main
from GstDebugViewer import Common, Data, Main
class ColorTheme (object):
@ -1123,7 +1117,9 @@ class App (object):
def attach (self):
state_filename = os.path.join (utils.XDG.CONFIG_HOME, "gst-debug-viewer", "state")
config_home = Common.utils.XDG.CONFIG_HOME
state_filename = os.path.join (config_home, "gst-debug-viewer", "state")
self.state = AppState (state_filename)