Skip to content

Commit cebf925

Browse files
authored
1 parent 913d12d commit cebf925

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wahoomc/downloader.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,12 @@ def download_tooling():
138138
download_file(get_tooling_win_path('osmfilter.exe', in_user_dir=True),
139139
'http://m.m.i24.cc/osmfilter.exe')
140140

141-
mapwriter_plugin_path = os.path.join(USER_TOOLING_WIN_DIR,
142-
'Osmosis', 'lib', 'default', map_writer_filename)
141+
# it seams, that as of Osmosis version 0.49.0 or at least in 0.49.2
142+
# the old mapwriter plugin location does not work anymore.
143+
# until v0.48.3, the location c:\Users\<username>\wahooMapsCreatorData\Osmosis\lib\default worked
144+
# since v0.49.0, the location c:\Users\<username>\AppData\Roaming\Openstreetmap\Osmosis\Plugins\ works
145+
mapwriter_plugin_path = os.path.join(
146+
str(USER_DIR), 'AppData', 'Roaming', 'Openstreetmap', 'Osmosis', 'Plugins', map_writer_filename)
143147

144148
# Non-Windows
145149
else:

0 commit comments

Comments
 (0)