--- a/lib/scripts/run-polyml-5.5.3 Tue Aug 18 14:07:27 2015 +0200
+++ b/lib/scripts/run-polyml-5.5.3 Tue Aug 18 14:28:29 2015 +0200
@@ -52,7 +52,15 @@
esac
else
check_file "$INFILE"
- INIT="(Signal.signal (2, Signal.SIG_HANDLE (fn _ => Process.interruptConsoleProcesses ())); PolyML.SaveState.loadState \"$INFILE\" handle exn => (TextIO.output (TextIO.stdErr, General.exnMessage exn ^ \": $INFILE\\n\"); OS.Process.exit OS.Process.success));"
+ case "$ML_PLATFORM" in
+ *-windows)
+ PLATFORM_INFILE="$(jvmpath -m "$INFILE")"
+ ;;
+ *)
+ PLATFORM_INFILE="$INFILE"
+ ;;
+ esac
+ INIT="(Signal.signal (2, Signal.SIG_HANDLE (fn _ => Process.interruptConsoleProcesses ())); PolyML.SaveState.loadState \"$PLATFORM_INFILE\" handle exn => (TextIO.output (TextIO.stdErr, General.exnMessage exn ^ \": $INFILE\\n\"); OS.Process.exit OS.Process.success));"
EXIT=""
fi