42.1.10
by Marc Tardif
Scripts can now be fully setup using configuration files. |
1 |
#!/usr/bin/env python
|
226
by Marc Tardif
Updated copyright information. |
2 |
#
|
306
by Marc Tardif
Renamed hwtest to checkbox. |
3 |
# This file is part of Checkbox.
|
226
by Marc Tardif
Updated copyright information. |
4 |
#
|
471
by Marc Tardif
Fixed source headers in accordance with Canonical licensing policy. |
5 |
# Copyright 2008 Canonical Ltd.
|
6 |
#
|
|
306
by Marc Tardif
Renamed hwtest to checkbox. |
7 |
# Checkbox is free software: you can redistribute it and/or modify
|
226
by Marc Tardif
Updated copyright information. |
8 |
# it under the terms of the GNU General Public License as published by
|
9 |
# the Free Software Foundation, either version 3 of the License, or
|
|
10 |
# (at your option) any later version.
|
|
11 |
#
|
|
306
by Marc Tardif
Renamed hwtest to checkbox. |
12 |
# Checkbox is distributed in the hope that it will be useful,
|
226
by Marc Tardif
Updated copyright information. |
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 |
# GNU General Public License for more details.
|
|
16 |
#
|
|
17 |
# You should have received a copy of the GNU General Public License
|
|
306
by Marc Tardif
Renamed hwtest to checkbox. |
18 |
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
|
226
by Marc Tardif
Updated copyright information. |
19 |
#
|
42.1.10
by Marc Tardif
Scripts can now be fully setup using configuration files. |
20 |
import sys |
395
by Marc Tardif
Using posixpath instead of os.path. |
21 |
import posixpath |
42.1.10
by Marc Tardif
Scripts can now be fully setup using configuration files. |
22 |
|
131
by Marc Tardif
Fixed portability on Dapper. |
23 |
|
24 |
# Workaround for python-support on older systems
|
|
25 |
directory = "/usr/share/python-support" |
|
306
by Marc Tardif
Renamed hwtest to checkbox. |
26 |
for package in ["checkbox", "checkbox-cli", "checkbox-gtk"]: |
395
by Marc Tardif
Using posixpath instead of os.path. |
27 |
sys.path.append(posixpath.join(directory, package)) |
131
by Marc Tardif
Fixed portability on Dapper. |
28 |
|
29 |
||
306
by Marc Tardif
Renamed hwtest to checkbox. |
30 |
from checkbox.application import ApplicationManager |
42.1.10
by Marc Tardif
Scripts can now be fully setup using configuration files. |
31 |
|
32 |
||
33 |
def main(): |
|
34 |
manager = ApplicationManager() |
|
35 |
application = manager.create_application(sys.argv) |
|
36 |
application.run() |
|
37 |
||
38 |
||
39 |
if __name__ == "__main__": |
|
40 |
main() |