Function python_file_from_commands

Source
pub fn python_file_from_commands(
    c: Vec<(String, String)>,
    pnum: &String,
    wait: &String,
    suffix: &String,
) -> Vec<String>
Expand description

Apply Python3 formatting to the Command lines in a process

  • Comments are applied with lines starting with the “#” character
  • Shebang appears as the first line
  • Important: assumes Python3 installed on client
  • “print” used to output to stdout, which is specific to Python3 and will not work on Python 2

*This function is used for the “python” SCRIPT-FORMAT option