diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 9c1ad8653..7ba4a351c 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -243,7 +243,7 @@ class ThemeManager(QtGui.QWidget): try: zip = zipfile.ZipFile(themePath, u'w') source = os.path.join(self.path, theme) - for files in os.walk(source)[2]: + for root, dirs, files in os.walk(source): for name in files: zip.write( os.path.join(source, name).encode(u'utf-8'),