X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FWatersOfShiloah.py;fp=src%2FWatersOfShiloah.py;h=79584e0fe26fd94ffe1efb7b2ff1ccb15cac72ee;hb=19b84701b8637038e9d214433b69dba6f87f603f;hp=b649363719456cecc6c8f7e69f21e3d30d22292e;hpb=e40b0fc29c8405ddb0dd626f92fcb76dc33c3c09;p=watersofshiloah diff --git a/src/WatersOfShiloah.py b/src/WatersOfShiloah.py index b649363..79584e0 100755 --- a/src/WatersOfShiloah.py +++ b/src/WatersOfShiloah.py @@ -1,36 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import os import sys -import logging -_moduleLogger = logging.getLogger(__name__) sys.path.append('/opt/WatersOfShiloah/lib') -import constants import watersofshiloah_gtk if __name__ == "__main__": - try: - os.makedirs(constants._data_path_) - except OSError, e: - if e.errno != 17: - raise - - try: - os.makedirs(constants._cache_path_) - except OSError, e: - if e.errno != 17: - raise - - logFormat = '(%(asctime)s) %(levelname)-5s %(threadName)s.%(name)s: %(message)s' - logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_, format=logFormat) - _moduleLogger.info("%s %s-%s" % (constants.__app_name__, constants.__version__, constants.__build__)) - _moduleLogger.info("OS: %s" % (os.uname()[0], )) - _moduleLogger.info("Kernel: %s (%s) for %s" % os.uname()[2:]) - _moduleLogger.info("Hostname: %s" % os.uname()[1]) - watersofshiloah_gtk.run()