Use shutil.rmtree rather than os.rmdir.

This commit is contained in:
Antoine Pitrou 2009-01-06 18:34:08 +00:00
parent e96d4ea4e2
commit 09cafb6335

View file

@ -269,7 +269,7 @@ func_filename = func.func_code.co_filename
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(self.dir_name):
os.rmdir(self.dir_name)
shutil.rmtree(self.dir_name)
def import_module(self):
ns = globals()