From 51d65037dfed30a43f46958aa082aa769fea250a Mon Sep 17 00:00:00 2001 From: John Schember Date: Thu, 11 Jun 2009 06:14:55 -0400 Subject: [PATCH] Use rmdir when removing directories instead of unlink. --- src/calibre/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 34f7abb195..2645a661db 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -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')