Message818
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.
|
|
Date |
User |
Action |
Args |
2009-02-03 14:20:21 | admin | link | issue736830 messages |
2009-02-03 14:20:21 | admin | create | |
|