Skip to content

Commit

Permalink
fix auto download symbology III
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-penasa committed Feb 3, 2022
1 parent 0016ebb commit 94224bd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mappy/providers/download_symbology.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ def processAlgorithm(self, parameters, context, model_feedback: QgsProcessingFee
s = Path(parameters["DestinationFolder"])
model_feedback.pushCommandInfo(f"Destination folder set to {s}")

svg_paths = QgsApplication.svgPaths()
if not svg_paths:
svg_paths = []



full_svg_path = s.joinpath(default_svg_path).as_posix()

svg_paths = QSettings().value('svg/searchPathsForSVG')

if not svg_paths:
svg_paths = QgsApplication.svgPaths()

if full_svg_path in svg_paths:
model_feedback.pushCommandInfo(f"svg path {full_svg_path} is already present in the settings")
else:
Expand Down

0 comments on commit 94224bd

Please sign in to comment.