Skip to content

Commit

Permalink
Create directory for python plugins if it doesn't exist
Browse files Browse the repository at this point in the history
(otherwise the plugin extraction will fail)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7868 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 8, 2008
1 parent d5c948a commit 9af6e0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/plugin_installer/qgis_plugins.py
Expand Up @@ -132,6 +132,10 @@ def install_plugin(plugin, plugindir, repos):
return (False, "Failed to download file to %s" % outfile)
return

# make sure that the parent directory exists
if not os.path.exists(plugindir):
os.makedirs(plugindir)

print "Extracting to plugin directory (%s)" % plugindir
try:
un = unzip()
Expand Down

0 comments on commit 9af6e0d

Please sign in to comment.