Use rmdir when removing directories instead of unlink.

This commit is contained in:
John Schember 2009-06-11 06:14:55 -04:00
parent f334cd786e
commit 51d65037df

View File

@ -334,7 +334,7 @@ def post_install():
os.chdir(config_dir)
for f in os.listdir('.'):
if os.stat(f).st_uid == 0:
os.unlink(f)
os.rmdir(f)
def binary_install():
manifest = os.path.join(getattr(sys, 'frozen_path'), 'manifest')