I\'m trying to do this:
import os [x for x in os.listdir(\'.\') if os.path.isfile(x)] [x for x in os.listdir(\'dirname\') if os.path.isfile(x)] [x for x in o
isfile() is looking in the current directory. Unless you include the directory name with the file name it has no idea where to find your files.
isfile()