Index: applications/editors/josm/plugins/mapillary/gradlew
===================================================================
--- applications/editors/josm/plugins/mapillary/gradlew	(revision 32285)
+++ applications/editors/josm/plugins/mapillary/gradlew	(revision 32867)
@@ -162,3 +162,8 @@
 JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
 
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
+  cd "$(dirname "$0")"
+fi
+
 exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
