Skip to content

Conversation

@hughbe
Copy link
Contributor

@hughbe hughbe commented Jan 14, 2017

  • The first argument of command_args is the process to open.
  • subprocess.Popen doesn't normalise arguments.
  • This means that trying to open a non-normalised file (e.g. C:/swift/./bin/swiftc.exe) on Windows results in file/directory not found errors, as Popen delegates to the Win32 CreateProcess API.
  • Unix systems handle non-normalised paths, so don't have this problem.
  • Arguments passed to the process are normalised by the process, so are not affected.

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test

@compnerd
Copy link
Member

This seems pretty reasonable, unfortunate, but reasonable.

@compnerd compnerd merged commit 6a06436 into swiftlang:master Jan 15, 2017
@hughbe hughbe deleted the line-directive-invoke branch January 15, 2017 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants