-#!/usr/bin/python
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
-import os
-import sys
-import logging
+"""
+Copyright (C) 2007 Christoph Würstle
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License version 2 as
+published by the Free Software Foundation.
+"""
-_moduleLogger = logging.getLogger("dialcentral")
-sys.path.insert(0,"/usr/lib/dialcentral/")
+import sys
-import constants
-import dc_glade
+sys.path.append("/opt/dialcentral/lib")
-try:
- os.makedirs(constants._data_path_)
-except OSError, e:
- if e.errno != 17:
- raise
+import dialcentral_qt
-logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_)
-_moduleLogger.info("Dialcentral %s-%s" % (constants.__version__, constants.__build__))
-try:
- dc_glade.run_dialpad()
-finally:
- logging.shutdown()
+if __name__ == "__main__":
+ dialcentral_qt.run()