366 # step 3: descent into subdirectories and delete them if empty |
366 # step 3: descent into subdirectories and delete them if empty |
367 for name in os.listdir(dirName): |
367 for name in os.listdir(dirName): |
368 name = os.path.join(dirName, name) |
368 name = os.path.join(dirName, name) |
369 if os.path.isdir(name): |
369 if os.path.isdir(name): |
370 cleanupSource(name) |
370 cleanupSource(name) |
371 if len(os.listdir(name)) == 0: |
371 if len(os.listdir(name)) == 0: |
372 os.rmdir(name) |
372 os.rmdir(name) |
373 |
373 |
374 |
374 |
375 def cleanUp(): |
375 def cleanUp(): |
376 """ |
376 """ |
377 Uninstall the old eric files. |
377 Uninstall the old eric files. |