add copyrights information
[appstream:software-center.git] / app-center
1 #!/usr/bin/python
2 # Copyright (C) 2009 Canonical
3 #
4 # Authors:
5 #  Michael Vogt
6 #
7 # This program is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
10 # version.
11 #
12 # This program is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
15 # details.
16 #
17 # You should have received a copy of the GNU General Public License along with
18 # this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 """this runs a AppCenter instance"""
21
22 import logging
23 import os
24
25 from appcenter.app import AppCenter
26
27
28 if __name__ == "__main__":
29     #logging.basicConfig(level=logging.DEBUG)
30     logging.basicConfig(level=logging.INFO)
31
32     if os.path.exists("./data"):
33         datadir = "./data"
34     else:
35         datadir = "/usr/share/app-center/"
36
37     ac = AppCenter(datadir)
38     ac.run()
39