Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 5:17 PM, Kent Johnson wrote: > On Tue, Oct 13, 2009 at 4:38 PM, David Eric wrote: > > > as far as print zip_command, i would add that to the program however, > doesnt > > just declaring it actually trigger it..thus it would executed and the >

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 4:02 PM, Kent Johnson wrote: > On Tue, Oct 13, 2009 at 2:58 PM, David Eric wrote: > > printing the command line, > > would it be > > print('gzip {0} {1}'.format(target, ' '.join(source))? > > Yes, or just > print zip

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 4:14 PM, Dave Angel wrote: > (You top-posted, instead of adding your part to the end. That's frowned > upon in a mailing list, at least in this one.) > (You replied privately, and forgot to CC the tutor list. I'm forwarding it > there with my resp

[Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
doing a python tutorial and one of the assignments says to develop a program that backsup files to zip files into a backup directory im using Darwin 10.0.0 unix version: this is what i came up with thus far, i did copy the sample program given but made changes for my unix OS: #!/usr/bin/env pyth

[Tutor] Confusion with $PATH

2009-09-25 Thread David Eric
Very new to python..getting accustomed to files, directories etc I installed a few versions of python and ended up with a very long PATH variable, do i need this or can i change it to something shorter? Doing an online tutorial one exercise was to move a simple program, helloworld into the PATH so