Python Module shutil: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
for i in m:
for i in m:
   print("{:20}{:7}".format(m[i], "OK" if which(i) else "missing"))
   print("{:20}{:7}".format(m[i], "OK" if which(i) else "missing"))
</syntaxhighlight lang='python'>
</syntaxhighlight>

Revision as of 03:19, 19 January 2022

External

Internal

Overview

Organizatorium

from shutil import which
for i in m:
  print("{:20}{:7}".format(m[i], "OK" if which(i) else "missing"))