Skip to content

Commit

Permalink
change the way to test if platform is windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chpicone committed Dec 16, 2020
1 parent c7fedf9 commit 8d6c8e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/scheduler/tasks/import_definitions/base_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ def initQgis():
"""
qgs = QgsApplication([], False)
qgs.initQgis()

#sys.path.append('C:\\OSGeo4W64\\apps\\qgis\\python\\plugins')
isWindows = os.name == 'nt'
if isWindows:
sys.path.append('C:\\OSGeo4W64\\apps\\qgis\\python\\plugins')

import processing
from processing.core.Processing import Processing
from processing.algs.gdal.GdalUtils import GdalUtils
from processing.tools.system import isWindows
#from processing.tools.system import isWindows

Processing.initialize()
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
Expand Down

0 comments on commit 8d6c8e2

Please sign in to comment.