mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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@7868 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
cfeccb4f90
commit
2620838f6b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user