Roundup Tracker - Issues

Message818

Author mikethompson
Recipients
Date 2003-05-13.04:00:03
Message-id
In-reply-to
In demo.py, I had add a couple of lines at the top of the 
install_demo() to get it to work on windows (XP):


def install_demo(home):
    # create the instance
    try:
        shutil.rmtree(home)
    except WindowsError, error:    #### added
        if error.errno != 3:                #### added
            raise                              #### added
    except os.error, error:
        if error.errno != errno.ENOENT:
            raise


WindowsError is a subclass of os.error so the ordering 
of the except clauses is important.

I'm too much of a newbie with python to know if this 
change with cause problems on other platforms.  I'll have 
to leave this up to those that know.
History
Date User Action Args
2009-02-03 14:20:21adminlinkissue736830 messages
2009-02-03 14:20:21admincreate