This is a follow up to Log probe requests of WiFi devices focussing on a specific element of the code.
Can I simplify this code and make it more readable?
if not os.path.isfile(args.tshark_path):
print "tshark not found at path {0}".format(args.tshark_path)
sys.exit(1)
if not os.path.isfile(args.ifconfig_path):
print "ifconfig not found at path {0}".format(args.ifconfig_path)
sys.exit(1)
if not osx:
if not os.path.isfile(args.iwconfig_path):
print "iwconfig not found at path {0}".format(args.iwconfig_path)
sys.exit(1)