Skip to content
Snippets Groups Projects
  • Matt Harbison's avatar
    3fb2fbad
    test-fix-path: avoid a test hang on Windows · 3fb2fbad
    Matt Harbison authored
    Windows can't typically invoke `*.py` directly as a command, and will instead
    show a prompt asking what program should be used to open the file.  We can't
    directly invoke the interpreter as is usually done in this case, because the
    whole point is to run something not in `PATH`.  The easiest thing to do is
    invoke a *.bat file that runs the interpreter.  We can get away with this
    because the current implementation is to effectively run `cmd.exe /c %command%`,
    which doesn't need the file extension specified.
    3fb2fbad
    History
    test-fix-path: avoid a test hang on Windows
    Matt Harbison authored
    Windows can't typically invoke `*.py` directly as a command, and will instead
    show a prompt asking what program should be used to open the file.  We can't
    directly invoke the interpreter as is usually done in this case, because the
    whole point is to run something not in `PATH`.  The easiest thing to do is
    invoke a *.bat file that runs the interpreter.  We can get away with this
    because the current implementation is to effectively run `cmd.exe /c %command%`,
    which doesn't need the file extension specified.