Skip to content
Discussion options

You must be logged in to vote

Thanks. As you saw, the problem was that I was using shlex.join(), which does the wrong kind of quoting for Windows. I've implemented a cross-platform fix, which sends the command and arguments directly to the OS without using shell parsing. That should be more robust. It will also switch between shlex.join() and subprocess.list2cmdline() depending on the platform, but only use them for display purposes. The new code is in pg_to_switch.py now, so it should work after you run git pull.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TMBrindle
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mfripp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants