mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Capitalization in parse_dash_results
This commit is contained in:
parent
c1bd69cbb6
commit
23acbf1b5a
@ -73,12 +73,12 @@ def colorDiff(c1, c2):
|
||||
def imageFromPath(path):
|
||||
if (path[:8] == 'https://' or path[:7] == 'file://'):
|
||||
# fetch remote image
|
||||
print('fetching remote ({})'.format(path))
|
||||
print('Fetching remote ({})'.format(path))
|
||||
data = urllib.request.urlopen(path).read()
|
||||
image = QImage()
|
||||
image.loadFromData(data)
|
||||
else:
|
||||
print('using local ({})'.format(path))
|
||||
print('Using local ({})'.format(path))
|
||||
image = QImage(path)
|
||||
return image
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user