[Tutor] Zip - password protect
Emile van Sebille
emile at fenx.com
Tue Aug 23 21:49:24 CEST 2011
On 8/23/2011 12:31 PM James Reynolds said...
> I'm trying the 7-zip solution, but I can't get past this
> error: WindowsError: [Error 2] The system cannot find the file specified
>
> The line it fails at is here: z = subprocess.call(['7z', 'a', '1234',
> '-y', name + '.zip'] + self.file_locs)
>
> (from now)
>
> oddly enough, when I open up a python shell, i can run the above just
> fine and it creates a .zip file.
>
> But when I run it from eclipse, the exact thing, I get the error.
I'd try providing the full path to 7z -- maybe that's why it probably
can't find the file specified.
Emile
More information about the Tutor
mailing list