kopia lustrzana https://github.com/OpenDroneMap/ODM
Fix BOM encoding bug with geo files
rodzic
4d7cf32a8c
commit
77f8ffc8cd
|
@ -12,6 +12,9 @@ class GeoFile:
|
|||
|
||||
with open(self.geo_path, 'r') as f:
|
||||
contents = f.read().strip()
|
||||
|
||||
# Strip eventual BOM characters
|
||||
contents = contents.replace('\ufeff', '')
|
||||
|
||||
lines = list(map(str.strip, contents.split('\n')))
|
||||
if lines:
|
||||
|
|
Ładowanie…
Reference in New Issue