~kelemeng/checkbox/bug868571

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: ubuntu
  • Date: 2008-01-29 20:32:40 UTC
  • mto: This revision was merged to the branch mainline in revision 154.
  • Revision ID: ubuntu@ubuntu-20080129203240-s2me3vbksz3kghrw
Using *_directory configuration variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        for outfile in outfiles:
60
60
            infile = os.path.join("examples", os.path.basename(outfile))
61
61
            self._substitute(infile, outfile, {
62
 
                "version = dev": "version = %s" % version})
 
62
                "version = dev": "version = %s" % version,
 
63
                "hwtest_directory = .": "hwtest_directory = /usr/share/hwtest"})
63
64
 
64
65
        # Substitute directory in defaults.py
65
66
        infile = "hwtest/defaults.py"
75
76
            outfile = os.path.join(root, outfile)
76
77
 
77
78
        self._substitute(infile, outfile, {
78
 
            "./examples": "/etc/hwtest.d"})
 
79
            "./configs": "/usr/share/%(base_name)s/configs"})
79
80
 
80
81
 
81
82
 
95
96
        ("share/applications/", ["gtk/hwtest-gtk.desktop"]),
96
97
        ("share/pixmaps/", ["gtk/hwtest-gtk.xpm"]),
97
98
        ("share/hwtest/data/", ["data/*"]),
98
 
        ("share/hwtest/configs/", ["configs/hwtest.ini"]),
 
99
        ("share/hwtest/examples/", ["examples/*"]),
99
100
        ("share/hwtest/install/", ["install/*"]),
100
101
        ("share/hwtest/plugins/", ["plugins/*.py"]),
101
102
        ("share/hwtest/registries/", ["registries/*.py"]),
102
103
        ("share/hwtest/questions/", ["questions/*"]),
103
104
        ("share/hwtest/scripts/", ["scripts/*"]),
104
 
        ("share/hwtest-gtk/", ["gtk/hwtest-gtk.glade", "gtk/*.png"]),
105
 
        ("share/hwtest-gtk/configs/", ["configs/hwtest-gtk.ini"]),
106
 
        ("share/hwtest-cli/configs/", ["configs/hwtest-cli.ini"])],
 
105
        ("share/hwtest/gtk/", ["gtk/hwtest-gtk.glade", "gtk/*.png"])],
107
106
    scripts = ["bin/hwtest", "bin/hwtest-gtk", "bin/hwtest-cli"],
108
107
    packages = ["hwtest", "hwtest.contrib", "hwtest.lib", "hwtest.reports",
109
108
        "hwtest.registries", "hwtest_cli", "hwtest_gtk"],