def __init__(self): plugin.MenuItem.__init__(self) if not self.watches: self.watches = {} if not self.last_notifies: self.last_notifies = {} if not self.timers: self.timers = {} Notify.init(APP_NAME.capitalize())
def __init__(self): plugin.MenuItem.__init__(self) if not self.watches: self.watches = {} if not self.last_activities: self.last_activities = {} if not self.timers: self.timers = {} pynotify.init(APP_NAME.capitalize())
if not self.distribution.without_gettext: for mo in glob.glob (os.path.join (MO_DIR, '*', 'terminator.mo')): lang = os.path.basename(os.path.dirname(mo)) dest = os.path.join('share', 'locale', lang, 'LC_MESSAGES') data_files.append((dest, [mo])) return data_files if platform.system() in ['FreeBSD', 'OpenBSD']: man_dir = 'man' else: man_dir = 'share/man' setup(name=APP_NAME.capitalize(), version=APP_VERSION, description='Terminator, the robot future of terminals', author='Chris Jones', author_email='*****@*****.**', url='http://www.tenshu.net/terminator/', license='GNU GPL v2', scripts=['terminator', 'remotinator'], data_files=[ ('share/applications', ['data/terminator.desktop']), (os.path.join(man_dir, 'man1'), ['doc/terminator.1']), (os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']), ('share/pixmaps', ['data/icons/48x48/apps/terminator.png']), ('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')), ('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')), ('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')),
def finalize_options(self): pass def run(self): import subprocess import sys errno = subprocess.call(['bash', 'run_tests']) raise SystemExit(errno) if platform.system() in ['FreeBSD', 'OpenBSD']: man_dir = 'man' else: man_dir = 'share/man' setup(name=APP_NAME.capitalize(), version=APP_VERSION, description='Terminator, the robot future of terminals', author='Chris Jones', author_email='*****@*****.**', url='https://gnometerminator.blogspot.com/p/introduction.html', license='GNU GPL v2', scripts=['terminator', 'remotinator'], data_files=[ ('bin', ['terminator.wrapper']), ('share/appdata', ['data/terminator.appdata.xml']), ('share/applications', ['data/terminator.desktop']), (os.path.join(man_dir, 'man1'), ['doc/terminator.1']), (os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']), ('share/pixmaps', ['data/icons/hicolor/48x48/apps/terminator.png']), ('share/icons/hicolor/scalable/apps', glob.glob('data/icons/hicolor/scalable/apps/*.svg')),