mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use rmdir when removing directories instead of unlink.
This commit is contained in:
parent
f334cd786e
commit
51d65037df
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user