..finally, the patch :) M
On Tue, Aug 21, 2012 at 10:09:35AM +0200, Martin Braun (CEL) wrote: > Hi, > > this addresses the bug Tommy discovered and removes a cause for > unnecessary GR apps crashing. > > MB > -- > Karlsruhe Institute of Technology (KIT) > Communications Engineering Lab (CEL) > > Dipl.-Ing. Martin Braun > Research Associate > > Kaiserstraße 12 > Building 05.01 > 76131 Karlsruhe > > Phone: +49 721 608-43790 > Fax: +49 721 608-46071 > www.cel.kit.edu > > KIT -- University of the State of Baden-Württemberg and > National Laboratory of the Helmholtz Association > _______________________________________________ > Patch-gnuradio mailing list > Patch-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/patch-gnuradio -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
From e6ee41cee395aac4785d629c579fadf41039c807 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.br...@kit.edu> Date: Tue, 21 Aug 2012 10:05:28 +0200 Subject: [PATCH] core: prefs.py now only checks for *.conf --- gnuradio-core/src/python/gnuradio/gr/prefs.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gnuradio-core/src/python/gnuradio/gr/prefs.py b/gnuradio-core/src/python/gnuradio/gr/prefs.py index 644aea8..25fa8cd 100644 --- a/gnuradio-core/src/python/gnuradio/gr/prefs.py +++ b/gnuradio-core/src/python/gnuradio/gr/prefs.py @@ -27,6 +27,7 @@ import ConfigParser import os import os.path import sys +import glob def _user_prefs_filename(): @@ -53,18 +54,18 @@ class _prefs(_prefs_base): invoke the methods in this python class. """ def __init__(self): - _prefs_base.__init__(self) - self.cp = ConfigParser.RawConfigParser() - self.__getattr__ = lambda self, name: getattr(self.cp, name) + _prefs_base.__init__(self) + self.cp = ConfigParser.RawConfigParser() + self.__getattr__ = lambda self, name: getattr(self.cp, name) def _sys_prefs_filenames(self): dir = _sys_prefs_dirname() try: - fnames = os.listdir(dir) + fnames = glob.glob(os.path.join(dir, '*.conf')) except (IOError, OSError): return [] fnames.sort() - return [os.path.join(dir, f) for f in fnames] + return fnames def _read_files(self): filenames = self._sys_prefs_filenames() -- 1.7.9.5
pgpyWHvaygCSL.pgp
Description: PGP signature
_______________________________________________ Patch-gnuradio mailing list Patch-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/patch-gnuradio