mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
another safe_link
This commit is contained in:
parent
323a405b31
commit
ce05b7ecc1
@ -96,7 +96,7 @@ def compile_icon_dir_as_themes(
|
|||||||
if ext.lower() not in ('.png',):
|
if ext.lower() not in ('.png',):
|
||||||
if image_name == 'metadata.json':
|
if image_name == 'metadata.json':
|
||||||
dest = theme_dir, dest_name
|
dest = theme_dir, dest_name
|
||||||
os.link(image_path, os.path.join(tdir, *dest))
|
safe_link(image_path, os.path.join(tdir, *dest))
|
||||||
file('/'.join(dest))
|
file('/'.join(dest))
|
||||||
return
|
return
|
||||||
if base.endswith('-for-dark-theme'):
|
if base.endswith('-for-dark-theme'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user