ecu_jon hayesjdno3 at
Sun Feb 13 11:45:11 CET 2011

i just tried changing that in ver12a, still get
IOError: [Errno 2] No such file or directory: 'V:\\week2\\configs\
good catch tho as that is needed. thanks.
weekchoice is used to pick week 1-4. really jsut returns 1-4. i plan
to do full weekly backups with another script.
getusername i was using when i was trying to build the path as part of
a unc path. isdir/isfile did not play well with that.
homedir returns the users home directory. works in xp,7, and linux.
source and destination should be self explanatory.
the backupall() gets called from clicking the button. for now its the
meat and potatoes im working on. it is trying to recursively copy
files/folders from source to dest. the for ... os.walk line digs
through the backup folder. i use os.chgdir , os.getcwd and leftover to
build the path for file/folder names on dest. basically start at c:
\users\name\backup\somefolder and end with just somefolderadded to
if os.path.isdir(fname): checks if it is a folder. copytree is a
recursive folder  copy.
elif os.path.isfile(fname): if it is a file. copy2 copies files and
class MyForm(wx.Frame): and down is wxpython, that works. ( tho i will
take suggestions but i know this is not the right forum to as
questions for that part)

More information about the Python-list mailing list