Archlinux AUR Maintainer and patch

Christoph Robbert <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hey,

I try to maintain the AUR packet for wxglade. I ported the PKGBUILD to 
wxglade 0.7.0 which worked quite well. Nevertheless I found a little bug 
in the log.py file. The logging.handlers.RotatingFileHandler does not 
create the required directory, therefore wxglade will not start since 
the logging is not set up correctly. I created a patch an included this 
patch already in the AUR packet. Furthermore I append the patch to this 
email. I hope this will help.

Regards,
Christoph

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
log.py.patch (text/x-patch, 541 B)
--- /usr/share/wxGlade/log.py	2014-12-05 23:08:41.000000000 +0100
+++ ../wxGlade/log.py	2014-12-05 23:29:33.942362152 +0100
@@ -37,7 +37,8 @@
 import pprint
 import sys
 import types
-
+import os
+import os.path
 import config
 
 
@@ -374,6 +375,9 @@
 
     # instantiate file handler
     if filename:
+        dirname = os.path.dirname(filename)
+        if not os.path.exists(dirname):
+            os.makedirs(dirname)
         file_logger = logging.handlers.RotatingFileHandler(
             filename,
             maxBytes=100 * 1024,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.