Add Python main snippet

This commit is contained in:
Kenneth Benzie 2024-04-23 22:52:06 +01:00
parent 09c785eee9
commit e3d4651062

12
snippets/python.snippets Normal file
View File

@ -0,0 +1,12 @@
# Python SnipMate snippets
snippet main
def main():
${0:pass}
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
exit(130)