[Tutor] gnupg within a for loop
Danny Yoo
dyoo at hashcollision.org
Sun Jun 1 19:28:44 CEST 2014
Hi Adam,
Ah; I've seen this before. Make sure the file name is either relative
to current working directory, or make the file name absolute. What's
happening is that os.listdir() is giving you file names that are
relative to the base directory you've passed it, but open() doesn't
know about the base directory.
You can use os.path.join() to create such paths:
https://docs.python.org/2/library/os.path.html#os.path.join
More information about the Tutor
mailing list