Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 07 May 2023 07:58:21 UTC Commit: 3b98f68e01488e79b5f041aa2102af9dafd6a077 https://github.com/geany/geany/commit/3b98f68e01488e79b5f041aa2102af9dafd6a0...
Log Message: ----------- Port "main.py" template to Python3
Related to #2615.
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).