Shell Interaction in Python: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Python Code Examples =Organizatorium= <syntaxhighlight lang='python'> from shutil import which commands={ "aws":...") |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Python Code Examples#Code_Examples|Python Code Examples]] | * [[Python Code Examples#Code_Examples|Python Code Examples]] | ||
* [[Python_Module_shutil|shutil]] | |||
=Organizatorium= | =Organizatorium= |
Revision as of 03:24, 19 January 2022
Internal
Organizatorium
from shutil import which
commands={
"aws": "awscli",
"aws-login": "aws-login",
"aws-eks-configure": "aws-eks-configure"
}
for c in commands:
print("{:20}{:7}".format(commands[c], "OK" if which(c) else "missing"))
'