mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change loading of fonts to make it platform independent. Fix a bug that could have caused temporary files to not be deleted.
This commit is contained in:
parent
d0f55a2a44
commit
de0596066d
0
src/libprs500/ebooks/lrf/fonts/prs500/__init__.py
Normal file
0
src/libprs500/ebooks/lrf/fonts/prs500/__init__.py
Normal file
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0003m_.py
Normal file
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0003m_.py
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0011m_.py
Normal file
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0011m_.py
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0419m_.py
Normal file
1
src/libprs500/ebooks/lrf/fonts/prs500/tt0419m_.py
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -42,8 +42,9 @@ class _TemporaryFileWrapper(object):
|
|||||||
return a
|
return a
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if os.access(self.name, os.F_OK):
|
import os # Needs to be here as the main os may no longer exist
|
||||||
os.unlink(self.name)
|
if self.name and os.access(self.name, os.F_OK):
|
||||||
|
os.remove(self.name)
|
||||||
|
|
||||||
|
|
||||||
def PersistentTemporaryFile(suffix="", prefix=""):
|
def PersistentTemporaryFile(suffix="", prefix=""):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user