2 # Copyright (C) 2009 Canonical
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
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
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"""
25 from appcenter.app import AppCenter
28 if __name__ == "__main__":
29 #logging.basicConfig(level=logging.DEBUG)
30 logging.basicConfig(level=logging.INFO)
32 if os.path.exists("./data"):
35 datadir = "/usr/share/app-center/"
37 ac = AppCenter(datadir)