This file is indexed.

/usr/share/quickly/templates/ubuntu-flash-game/project_root/bin/project_name is in quickly-ubuntu-template 12.08.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# This file is in the public domain
### END LICENSE

###########################################################################
# SWF file details
# Edit these lines as appropriate
###########################################################################

GAME_NAME = "sentence_name"
WINDOW_SIZE = (swf_width, swf_height)


###########################################################################
# No need to edit below here 
###########################################################################


import gi
gi.require_version("Gtk", "2.0")
gi.require_version("Gio", "2.0")
gi.require_version("WebKit", "1.0")
from gi.repository import Gtk
from gi.repository import WebKit
from gi.repository import Gio
import json, os

# Where your project will look for your data (for instance, images and ui
# files). By default, this is ../data, relative your trunk layout
__python_name_data_directory__ = '../data/'

def get_data_file(*path_segments):
    """Get the full path to a data file.

    Returns the path to a file underneath the data directory (as defined by
    `get_data_path`). Equivalent to os.path.join(get_data_path(),
    *path_segments).
    """
    return os.path.join(get_data_path(), *path_segments)


def get_data_path():
    """Retrieve project_name data path

    This path is by default <python_name_lib_path>/../data/ in trunk
    and /usr/share/project_name in an installed version but this path
    is specified at installation time.
    """

    # Get pathname absolute or relative.
    path = os.path.join(
        os.path.dirname(__file__), __python_name_data_directory__)

    abs_data_path = os.path.abspath(path)
    if not os.path.exists(abs_data_path):
        raise project_path_not_found

    return abs_data_path


if __name__ == "__main__":
    w = Gtk.Window()
    v = WebKit.WebView()
    w.add(v)
    w.show_all() # have to have this before set_size_request
    w.connect("destroy", lambda q: Gtk.main_quit())
    w.set_title(GAME_NAME)
    htmlfp = Gio.file_new_for_path(get_data_file('index.html'))
    uri = htmlfp.get_uri()
    _, html, _ = htmlfp.load_contents(None)
    w.set_size_request(*WINDOW_SIZE)
    v.load_html_string(html, uri)
    Gtk.main()