Move terminator*.pyc to terminatorlib. Teach setup.py about the change.

This commit is contained in:
Thomas Hurst 2008-05-21 11:17:55 +01:00
parent 4c7d047a84
commit 9ef585a7b7
5 changed files with 7 additions and 7 deletions

View File

@ -84,7 +84,7 @@ setup(name='Terminator',
('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')), ('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')), ('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')),
], ],
py_modules=['terminatorconfig', 'terminatorencoding'], packages=['terminatorlib'],
cmdclass={'build': BuildData, 'install_data': InstallData} cmdclass={'build': BuildData, 'install_data': InstallData}
) )

View File

@ -36,11 +36,11 @@ except:
import pwd import pwd
# import our configuration loader # import our configuration loader
import terminatorconfig from terminatorlib import config
from terminatorconfig import dbg from terminatorlib.config import dbg
#import encoding list #import encoding list
from terminatorencoding import TerminatorEncoding from terminatorlib.encoding import TerminatorEncoding
# import gtk libs # import gtk libs
# check just in case anyone runs it on a non-gnome system. # check just in case anyone runs it on a non-gnome system.
@ -632,17 +632,17 @@ class Terminator:
self._fullscreen = False self._fullscreen = False
self.term_list = [] self.term_list = []
stores = [] stores = []
stores.append (terminatorconfig.TerminatorConfValuestoreRC ()) stores.append (config.TerminatorConfValuestoreRC ())
try: try:
import gconf import gconf
store = terminatorconfig.TerminatorConfValuestoreGConf () store = config.TerminatorConfValuestoreGConf ()
store.set_reconfigure_callback (self.reconfigure_vtes) store.set_reconfigure_callback (self.reconfigure_vtes)
stores.append (store) stores.append (store)
except: except:
pass pass
self.conf = terminatorconfig.TerminatorConfig (stores) self.conf = config.TerminatorConfig (stores)
self.window = gtk.Window () self.window = gtk.Window ()
self.window.set_title (APP_NAME.capitalize()) self.window.set_title (APP_NAME.capitalize())

View File