<br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 4:11 PM, James Reynolds <span dir="ltr"><<a href="mailto:eire1130@gmail.com">eire1130@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Aug 23, 2011 at 3:49 PM, Emile van Sebille <span dir="ltr"><<a href="mailto:emile@fenx.com" target="_blank">emile@fenx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 8/23/2011 12:31 PM James Reynolds said...<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying the 7-zip solution, but I can't get past this<br>
error: WindowsError: [Error 2] The system cannot find the file specified<br>
<br>
The line it fails at is here: z = subprocess.call(['7z', 'a', '1234',<br>
'-y', name + '.zip'] + self.file_locs)<br>
<br>
(from now)<br>
<br>
oddly enough, when I open up a python shell, i can run the above just<br>
fine and it creates a .zip file.<br>
<br>
But when I run it from eclipse, the exact thing, I get the error.<br>
</blockquote>
<br></div>
I'd try providing the full path to 7z -- maybe that's why it probably can't find the file specified.<br><font color="#888888">
<br>
Emile</font><div><div></div><div><br>
<br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a></div></div></blockquote><div><br></div><div><br></div></div></div><div>It was a silly problem.</div>
<div>
<br></div><div>I guess Eclipse saves your PATH variables once the program is started, instead of referencing the os directly. (I just did print "Current path is %s" % os.path.expandvars("$PATH")) and that told me what was going on.</div>
<div><br></div><div>Anyway, it's saving the files a .7z which isn't doing me much good. i was under the impression i could save them as .zip, if not I'm just going to have to password protect manually.</div></div>
<br>
</blockquote></div><br><div>got it working, had a flag in the wrong spot. Seems to work better than the Zip module in some ways.</div><div><br></div><div>Thanks for the help.</div><div><br></div>