[wesnoth_addon_manager] Remove old campaign directory...

...before unpacking a new one.
This commit is contained in:
Elias Pschernig 2009-07-27 13:58:21 +00:00
parent 236019ef4e
commit 1aa2d5cb8d

View file

@ -431,6 +431,7 @@ class CampaignClient:
path is the path under which it will be placed.
"""
shutil.rmtree(path, True)
try:
os.mkdir(path)
except OSError: