mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 17:34:39 +02: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
8 changed files with 6 additions and 2 deletions
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 @@ def __getattr__(self, name):
|
|||
return a
|
||||
|
||||
def __del__(self):
|
||||
if os.access(self.name, os.F_OK):
|
||||
os.unlink(self.name)
|
||||
import os # Needs to be here as the main os may no longer exist
|
||||
if self.name and os.access(self.name, os.F_OK):
|
||||
os.remove(self.name)
|
||||
|
||||
|
||||
def PersistentTemporaryFile(suffix="", prefix=""):
|
||||
|
|
|
|||
Loading…
Reference in a new issue