ver Jan31stv2
added a warning comment about expanding tildes in command parameter of subprocess.xxx
This commit is contained in:
@@ -56,7 +56,6 @@ def execute_command():
|
|||||||
if isinstance(command, str) and not shell:
|
if isinstance(command, str) and not shell:
|
||||||
command = shlex.split(command)
|
command = shlex.split(command)
|
||||||
|
|
||||||
# WARNING: auto expansion should be completed by set `shell=True` and use str as `command`
|
|
||||||
# Expand user directory
|
# Expand user directory
|
||||||
for i, arg in enumerate(command):
|
for i, arg in enumerate(command):
|
||||||
if arg.startswith("~/"):
|
if arg.startswith("~/"):
|
||||||
@@ -99,7 +98,6 @@ def launch_app():
|
|||||||
if isinstance(command, str) and not shell:
|
if isinstance(command, str) and not shell:
|
||||||
command = shlex.split(command)
|
command = shlex.split(command)
|
||||||
|
|
||||||
# WARNING: auto expansion should be completed by set `shell=True` and use str as `command`
|
|
||||||
# Expand user directory
|
# Expand user directory
|
||||||
for i, arg in enumerate(command):
|
for i, arg in enumerate(command):
|
||||||
if arg.startswith("~/"):
|
if arg.startswith("~/"):
|
||||||
|
|||||||
Reference in New Issue
Block a user