Make `rbt install` work correctly on Windows.
Review Request #8354 — Created Aug. 26, 2016 and submitted
Unfortunately, the technique of using
NamedTemporaryFile
in a context manager
and yielding the filename back, then reopening it from elsewhere in the code
caused various permission errors when running on Windows.This change rearranges the code a bit to make sure we flush and close the file,
and then handles cleanup ourselves.
Used it on OS X, and a customer reports success running on Windows.
- Commit:
-
b545422818fffa33cbdbb36708e5b689c66f26c843c524d6cda4517c984014a159f6e81c06753d9a
- Diff:
-
Revision 2 (+24 -17)
-
Tool: Pyflakes Processed Files: rbtools/commands/install.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/install.py
- Commit:
-
43c524d6cda4517c984014a159f6e81c06753d9a19f4dd79fff80afc2ae139cfb7016b22eca32200
- Diff:
-
Revision 3 (+17 -11)