[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

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

2009-10-13 Thread David Eric
) David Eric wrote: wow thank you yes...youre right i did want to pass a list of strings im copying the sample program and adding my own directories, i missed what the example was trying to show in that instance. as far as the recursive option, you mean the -r would process all subdirectories under

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 ken...@tds.net wrote: On Tue, Oct 13, 2009 at 2:58 PM, David Eric cii...@gmail.com wrote: printing the command line, would it be print('gzip {0} {1}'.format(target, ' '.join(source))? Yes, or just print zip_command and as far as using

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 ken...@tds.net wrote: On Tue, Oct 13, 2009 at 4:38 PM, David Eric cii...@gmail.com 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

[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