Skip to content

Conversation

@ericphanson
Copy link
Contributor

as noticed in https://discourse.julialang.org/t/baron-error-ioerror-could-not-spawn/44430, the path that gets written only has single / instead of // on Windows.

I tested this new way locally on Windows and WSL via

path = pwd()
open("file.txt", "w") do io
    write(io, """const baron_exec = $(repr(path))\n""")
end

and it escapes things correctly in each case (const baron_exec = "C:\\Users\\eric\\Code" on Windows and const baron_exec = "/mnt/c/Users/eric" in WSL).

@joehuchette
Copy link
Contributor

Thanks for this. I don't have a Windows machine for testing, so I'll take your word for it :)

@joehuchette joehuchette merged commit 2d9c3af into jump-dev:master Aug 6, 2020
@ericphanson ericphanson deleted the patch-1 branch August 6, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants