jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/426815 )
Change subject: [FEAT] Show the python version when starting pwb shell ......................................................................
[FEAT] Show the python version when starting pwb shell
- Show the python version as command line title on windows when starting the shell script. This is usefull for example if you have different python versions installed and start one of them with the python launcher. This shows the started version.
Change-Id: Iabeca656ab2739e117c3704047ec5c827f26803c --- M scripts/shell.py 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/shell.py b/scripts/shell.py index 07b16af..f99183b 100755 --- a/scripts/shell.py +++ b/scripts/shell.py @@ -30,6 +30,10 @@
if __name__ == "__main__": import sys + if sys.platform == 'win32': + import os + os.system('title Python {} Shell'.format(*sys.version.split(' ', 1))) + del os args = [] if set(sys.argv) - {'shell', 'shell.py'}: args = sys.argv
pywikibot-commits@lists.wikimedia.org