Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • edk2-test-parser edk2-test-parser
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SystemReady
  • edk2-test-parseredk2-test-parser
  • Repository
Switch branch/tag
  • edk2-test-parser
  • parser.py
Find file BlameHistoryPermalink
  • Grant Likely's avatar
    Use __init__ == '__main__' pattern in script · 8c5be594
    Grant Likely authored Aug 18, 2021
    
    
    Use the typical __init__ == '__main__' pattern to determine if the code
    is being run as a script, and only execute the main code if true. This
    makes the code more portable to other projects.
    Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
    8c5be594