How do I write this correctly:
for root, dirs, files in os.walk(SEARCHDIR):
files = [f for f in files if not f[0] == '.' and not ("BLACKBOX" or ".RTN" or ".log") in f]
I want to achieve my file list to contain all files instead of hidden files or files conaining one of the strings "BLACKBOX" or ".RTN" or ".log". Anyway only the first expression is evaluated ("BLACKBOX") the others are ignored.