/usr/share/games/pyscrabble/python/pyscrabble-main.py is in pyscrabble 1.6.2-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/usr/bin/env python
from twisted.internet import gtk2reactor
gtk2reactor.install()
import warnings
warnings.filterwarnings("ignore")
from pyscrabble import constants
import gettext
gettext.install(constants.LOCALE_DOMAIN, constants.LOCALE_DIR)
from pyscrabble import manager
l = manager.LocaleManager()
from pyscrabble import dist
from pyscrabble import gtkconstants
from pyscrabble import gtkutil
from twisted.internet import reactor
from pyscrabble.gui.login import LoginWindow
import gtk
if __name__ == '__main__':
dist.ensure_config_dir( dist.CONFIG_DIR )
gtk.rc_parse_string( gtkconstants.DEFAULT_THEME )
gtkutil.setupStockItems()
o = manager.OptionManager()
def callback(): LoginWindow()
if o.get_default_bool_option(constants.OPTION_SHOW_TIPS, True):
from pyscrabble.gui import tip
tip.TipWindow(tip=tip.WELCOME_TIP, callback=callback)
else:
callback()
reactor.run()
|