Skip to content
Permalink
Browse files

[processing] fixed wrong call to splitext in dataobjects.py

(cherry picked from commit 479ceb3)

Conflicts:
	python/plugins/processing/tools/dataobjects.py
  • Loading branch information
volaya authored and alexbruy committed Jun 1, 2016
1 parent ca96702 commit 792cbb25ea00ad85a56fefcb5db6bf894b3a03c9
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/tools/dataobjects.py
@@ -28,7 +28,8 @@

import os
import re
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, \
QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.gui import QgsSublayersDialog
from PyQt4.QtCore import QSettings
from qgis.utils import iface
@@ -318,7 +319,7 @@ def exportVectorLayer(layer, supported=None):
unicode(layer.source()).decode('ascii')
except UnicodeEncodeError:
isASCII = False
if not os.path.splitext()[1] in supported or not isASCII:
if not os.path.splitext(layer.source())[1].lower() in supported or not isASCII:
writer = QgsVectorFileWriter(
output, systemEncoding,
layer.pendingFields(), provider.geometryType(),

0 comments on commit 792cbb2

Please sign in to comment.
You can’t perform that action at this time.