[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-23 Thread Steve Dower


Change by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 019e9e816882f5c43c4b833f81844b8299e815fd by Steve Dower in branch 
'master':
bpo-43538: Add extra arguments to os.startfile (GH-25538)
https://github.com/python/cpython/commit/019e9e816882f5c43c4b833f81844b8299e815fd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-22 Thread Steve Dower


Steve Dower  added the comment:

Not rushing this one in, but this is a relatively straightforward addition that 
will definitely be handy in some situations.

I didn't bother adding an enum for the SW_* constants, since I don't think 
they'll get anywhere near enough use to justify being in our public API. Kind 
of like error codes, which we already don't expose everywhere even though we 
use them ourselves as raw numbers.

--
assignee:  -> steve.dower

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-22 Thread Steve Dower


Change by Steve Dower :


--
keywords: +patch
pull_requests: +24258
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25538

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-22 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-18 Thread Eryk Sun


New submission from Eryk Sun :

bpo-8232 has a patch to add an `arguments` parameter to os.startfile(). This 
improvement is needlessly tied to that issue. It's useful in general as a safer 
way to execute applications and scripts compared to using subprocess.Popen() 
with shell=True. It also enables passing arguments to applications and scripts 
when using the "runas" operation (prompts with a UAC dialog) and "runasuser" 
operation (prompts with a credential dialog). The latter operations are 
supported by default for binary executables and batch scripts in Windows 10, 
and they can be implemented by the progid of any file type.

Setting the working directory with a cwd parameter is not as generally useful, 
but it's not entirely useless and simple to add at the same time when adding 
the `args` parameter.

--
components: Extension Modules, Windows
messages: 388991
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] support args and cwd in os.startfile()
type: enhancement
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com