Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Yeah. I like using main() that way too. It’s usually just a high-level function that handles globals relevant to running in standalone and calling other functions to do work.