[geany/geany] f1923c: Simulate `main` function in Python
Matthew Brush
git-noreply at xxxxx
Sun May 4 04:23:29 UTC 2014
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: Matthew Brush <matt at geany.org>
Date: Sun, 04 May 2014 04:23:29 UTC
Commit: f1923c79b43099a9929dcc99aeffda65e72bb1d3
https://github.com/geany/geany/commit/f1923c79b43099a9929dcc99aeffda65e72bb1d3
Log Message:
-----------
Simulate `main` function in Python
Modified Paths:
--------------
data/templates/files/main.py
Modified: data/templates/files/main.py
8 lines changed, 3 insertions(+), 5 deletions(-)
===================================================================
@@ -3,11 +3,9 @@
#
{fileheader}
-
-def main():
-
+def main(args):
return 0
if __name__ == '__main__':
- main()
-
+ import sys
+ sys.exit(main(sys.argv))
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list