projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37dea8c
)
Minor editing.
author
Scott Gasch
<
[email protected]
>
Sat, 24 Apr 2021 00:16:39 +0000
(17:16 -0700)
committer
Scott Gasch
<
[email protected]
>
Sat, 24 Apr 2021 00:16:39 +0000
(17:16 -0700)
exec_utils.py
patch
|
blob
|
history
diff --git
a/exec_utils.py
b/exec_utils.py
index 0ed360191d6ad9f89c64acf591f78044008f4009..c669f5460b2d97490d308c38b285233f431a9ffa 100644
(file)
--- a/
exec_utils.py
+++ b/
exec_utils.py
@@
-25,12
+25,14
@@
def run_silently(command: str) -> None:
"""Run a command silently but raise subprocess.CalledProcessError if
it fails."""
subprocess.run(
"""Run a command silently but raise subprocess.CalledProcessError if
it fails."""
subprocess.run(
- command, shell=True, stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
- capture_output=False, check=True
+ command, shell=True, stderr=subprocess.DEVNULL,
+
stdout=subprocess.DEVNULL,
capture_output=False, check=True
)
)
-def cmd_in_background(command: str, *, silent: bool = False) -> subprocess.Popen:
+def cmd_in_background(
+ command: str, *, silent: bool = False
+) -> subprocess.Popen:
args = shlex.split(command)
if silent:
return subprocess.Popen(args,
args = shlex.split(command)
if silent:
return subprocess.Popen(args,