From: stack Date: Sun, 8 Jul 2012 16:13:31 +0000 (+0200) Subject: corrected profile list generation X-Git-Url: https://v.licheni.net/stack/code/dboxswitch.git/commitdiff_plain/095d457ee822e8965b63ab9fd226e26a5f7128a5 corrected profile list generation Profiles generation at runtime was picking up a nonexistant attribute (self. was missing) --- diff --git a/profhandler.py b/profhandler.py index 2e1a30d..d0e16f2 100755 --- a/profhandler.py +++ b/profhandler.py @@ -63,7 +63,7 @@ class ProfHandler(): """ Generate and returns the profiles it assumes that self.pdir is defined """ #this is generated every time to handle the case of the user renaming the directories by hand - return [os.path.join(self.pdir, f) for f in os.listdir(pdir)] + return [os.path.join(self.pdir, f) for f in os.listdir(self.pdir)] def getProfileFolder(self): """ Generates, in a os dependant way, the local folder where all profiles are stored """