Python Scripting

R3zk0n ยท October 2, 2025

Contents

    Using if __name__ == '__main__':

    • This means it can be run as a script:
      • https://www.youtube.com/watch?v=g_wlZ9IhbTs
    • Then use the def main() function, as anything defined in __name__ is global scope

    Dont name your file โ€œDNSโ€ if your trying to import DNS due to circular imports..fuckhead

    Twitter, Facebook