Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Fri, 12 May 2023 21:02:50 UTC Commit: 99b846166a53182493467feec789b7fd6ccb73f5 https://github.com/geany/geany/commit/99b846166a53182493467feec789b7fd6ccb73...
Log Message: ----------- Merge pull request #3485 from eht16/port_main_py_template_to_python3
Port "main.py" template to Python3
Modified Paths: -------------- data/templates/files/main.py
Modified: data/templates/files/main.py 10 lines changed, 6 insertions(+), 4 deletions(-) =================================================================== @@ -1,11 +1,13 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#!/usr/bin/env python3 # {fileheader}
+import sys + + def main(args): return 0
+ if __name__ == '__main__': - import sys - sys.exit(main(sys.argv)) + sys.exit(main(sys.argv[1:]))
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).