Part of twisted.python View Source
See also twisted.python.shortcut.
| Variables | O_BINARY | the 'binary' mode flag on Windows, or 0 on other platforms, so it may safely be OR'ed into a mask for os.open. |
| Class | FakeWindowsError | Stand-in for sometimes-builtin exception on platforms for which it |
| Function | getProgramsMenuPath | Get the path to the Programs menu. |
| Function | getProgramFilesPath | Get the path to the Program Files folder. |
| Function | cmdLineQuote | Internal method for quoting a single command-line argument. |
| Function | quoteArguments | Quote an iterable of command-line arguments for passing to CreateProcess or |
| Function | _determineWindowsError | Determine which WindowsError name to export. |
| Class | _ErrorFormatter | Formatter for Windows error messages. |
Probably will break on non-US Windows.
| Returns | the filesystem location of the common Start Menu->Programs. | |
| Parameters | s | an unquoted string that you want to quote so that something that does
cmd.exe-style unquoting will interpret it as a single argument, even if it
contains spaces.
(type: str
) |
| Returns | a quoted string.
(type: str
) | |
reactor.spawnProcess to match the child process's
sys.argv properly.| Parameters | arglist | an iterable of str, each unquoted.
|
| Returns | a single string, with the given sequence quoted as necessary. | |