Skip to content

Commit 9af6e0d

Browse files
author
wonder
committedJan 8, 2008
Create directory for python plugins if it doesn't exist
(otherwise the plugin extraction will fail) git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7868 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎python/plugins/plugin_installer/qgis_plugins.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def install_plugin(plugin, plugindir, repos):
132132
return (False, "Failed to download file to %s" % outfile)
133133
return
134134

135+
# make sure that the parent directory exists
136+
if not os.path.exists(plugindir):
137+
os.makedirs(plugindir)
138+
135139
print "Extracting to plugin directory (%s)" % plugindir
136140
try:
137141
un = unzip()

0 commit comments

Comments
 (0)
Please sign in to comment.