This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Bernát Gábor, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-07-20.23:26:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500593189.4.0.785548275401.issue30979@psf.upfronthosting.co.za>
In-reply-to
Content
subprocess.Popen calls WinAPI CreateProcess, which can execute PE/COFF executables and .BAT/.CMD batch scripts. It doesn't know anything about .LNK shell shortcuts. If CreateProcess fails, a Windows shell (e.g. CMD or PowerShell) tries ShellExecuteEx, which knows how to open a .LNK file. You can use shell=True for this in Python.

Directly supporting ShellExecuteEx would be a major enhancement. It would probably require a new keyword-only parameter, or at least a sentinel value for the existing `shell` parameter.
History
Date User Action Args
2017-07-20 23:26:29eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Bernát Gábor
2017-07-20 23:26:29eryksunsetmessageid: <1500593189.4.0.785548275401.issue30979@psf.upfronthosting.co.za>
2017-07-20 23:26:29eryksunlinkissue30979 messages
2017-07-20 23:26:29eryksuncreate