Win32 utilities.

See also twisted.python.shortcut.

Variable 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 is missing.
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 a similar API. This allows the list passed to reactor.spawnProcess to match the child process's sys.argv properly.
Class _ErrorFormatter Formatter for Windows error messages.
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.
def getProgramsMenuPath(): (source)

Get the path to the Programs menu.

Probably will break on non-US Windows.

Returnsthe filesystem location of the common Start Menu->Programs. (type: str)
def getProgramFilesPath(): (source)

Get the path to the Program Files folder.

def cmdLineQuote(s): (source)

Internal method for quoting a single command-line argument.

Parameterssan 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)
Returnsa quoted string. (type: str)
def quoteArguments(arguments): (source)

Quote an iterable of command-line arguments for passing to CreateProcess or a similar API. This allows the list passed to reactor.spawnProcess to match the child process's sys.argv properly.

Parametersarglistan iterable of str, each unquoted.
Returnsa single string, with the given sequence quoted as necessary.
API Documentation for Twisted, generated by pydoctor at 2017-06-11 10:59:01.