Skip to content
Permalink
Browse files
Minor cleanup to the output when unzipping a pyqgis plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7970 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jan 15, 2008
1 parent fb46533 commit 40ea025af8a546ca9010a32321e0eab2d5a56353
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/plugin_installer/qgis_plugins.py
@@ -40,7 +40,7 @@ def extract(self, file, dir):
zf = zipfile.ZipFile(file)

# create directory structure to house files
print "Creating plugin structure"
print "Creating plugin structure:"
self._createstructure(file, dir)

num_files = len(zf.namelist())
@@ -70,7 +70,7 @@ def _createstructure(self, file, dir):

def _makedirs(self, directories, basedir):
""" Create any directories that don't currently exist """
print "Creating directories contained in the zip file: %s" % directories
print "Processing directories contained in the zip file: %s" % directories
for dir in directories:
curdir = os.path.join(basedir, dir)
# normalize the path
@@ -91,7 +91,7 @@ def _listdirs(self, file):

for file in zf.filelist:
if file.external_attr >> 28 == 4:
print "Adding %s to the list of directories to create" % file.filename
# print "Adding %s to the list of directories to create" % file.filename
dirs.append(file.filename)

#for name in zf.namelist():

0 comments on commit 40ea025

Please sign in to comment.