Skip to content

Commit a45549f

Browse files
stephendadepeterbarker
authored andcommitted
Map: Use correct file path for icons
1 parent 8947768 commit a45549f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MAVProxy/modules/mavproxy_map/mp_tile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def mp_icon(filename):
626626
raw = np.fromstring(stream, dtype=np.uint8)
627627
except Exception:
628628
try:
629-
stream = open(os.path.join(__file__, 'data', filename)).read()
629+
stream = open(os.path.join(os.path.dirname(__file__), 'data', filename)).read()
630630
raw = np.fromstring(stream, dtype=np.uint8)
631631
except Exception:
632632
#we're in a Windows exe, where pkg_resources doesn't work

0 commit comments

Comments
 (0)