Skip to content
Myr

Fixed the launch function on windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent a8e45bc · Browse files · 2 files+7 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−6 removed

  • other:+7 added−6 removed

2 files+7 added−6 removed

modified:click/_termui_impl.py+5 added-6 removed
410 unmodified lines
411 null.close()412 elif sys.platform.startswith('win'):413 if locate:414 url = _unquote_file(url)415 args = ['explorer', '/select,"%s"' % _unquote_file(url)]415 args = 'explorer /select,"%s"' % _unquote_file(416 url.replace('"', ''))417 else:417 args = ['start']418 if wait:419 args.append('/WAIT')420 args.append(url)421 return subprocess.Popen(args).wait()418 args = 'start %s "" "%s"' % (419 wait and '/WAIT' or '', url.replace('"', ''))420 return os.system(args)421422 try:423 if locate:424 url = os.path.dirname(_unquote_file(url)) or '.'
63 unmodified lines
modified:CHANGES+2 added
6 unmodified lines
7-----------89(bugfix release, release date to be decided)1011- fixed the :func:`launch` function on windows.1213Version 2.014-----------1516(codename "tap tap tap", released on June 6th 2014)
52 unmodified lines