Matze 6 lat temu
rodzic
commit
171695cc38
2 zmienionych plików z 6 dodań i 0 usunięć
  1. 2 0
      KCG/kcg.py
  2. 4 0
      kcg.py

+ 2 - 0
KCG/kcg.py

@@ -13,6 +13,8 @@ from . import config
 
 # -------[ Register Logger here to enable logging before anything of this app is performed ]---------------
 logging.getLogger().setLevel(0)
+if not os.path.isdir(os.path.join(os.path.expanduser("~"),".kcg")):
+    os.makedirs(os.path.join(os.path.expanduser("~"),".kcg"))
 fileLogHandler = handlers.RotatingFileHandler(os.path.join(os.path.expanduser("~"),".kcg","kcg.log.full"), maxBytes=10**7, backupCount=5)
 fileLogHandler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s: %(message)s'))
 fileLogHandler.setLevel(0)

+ 4 - 0
kcg.py

@@ -1,3 +1,7 @@
 #!/usr/bin/python
+import sip #needed for pyQT4 to run with python 3
+sip.setapi('QString', 1)
+sip.setapi('QStringList', 1)
+
 import KCG.kcg as k
 k.run()