class documentation

Undocumented

Method test_basic When the copy of cli.exe, foo.exe in this example, runs, it examines the path name it was run with and computes a Python script path name by removing the '.exe' suffix and adding the '-script.py' suffix...
Method test_with_options Specifying Python Command-line Options --------------------------------------
Class Variable script_name Undocumented
Class Variable script_tmpl Undocumented
Class Variable wrapper_name Undocumented
Class Variable wrapper_source Undocumented

Inherited from WrapperTester:

Class Method create_script Create a simple script, foo-script.py
Class Method prep_script Undocumented
def test_basic(self, tmpdir): (source)

When the copy of cli.exe, foo.exe in this example, runs, it examines the path name it was run with and computes a Python script path name by removing the '.exe' suffix and adding the '-script.py' suffix. (For GUI programs, the suffix '-script.pyw' is added.) This is why we named out script the way we did. Now we can run out script by running the wrapper: This example was a little pathological in that it exercised windows (MS C runtime) quoting rules: - Strings containing spaces are surrounded by double quotes. - Double quotes in strings need to be escaped by preceding them with back slashes. - One or more backslashes preceding double quotes need to be escaped by preceding each of them with back slashes.

def test_with_options(self, tmpdir): (source)

Specifying Python Command-line Options -------------------------------------- You can specify a single argument on the '#!' line. This can be used to specify Python options like -O, to run in optimized mode or -i to start the interactive interpreter. You can combine multiple options as usual. For example, to run in optimized mode and enter the interpreter after running the script, you could use -Oi:

script_name: str = (source)

Undocumented

script_tmpl = (source)

Undocumented

wrapper_name: str = (source)

Undocumented

wrapper_source = (source)

Undocumented