mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added cache cleaning...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
757ea6c99b
commit
ade04b9773
9
index.py
9
index.py
@ -1,7 +1,7 @@
|
||||
#=======================================================================
|
||||
|
||||
__version__ = '''0.0.01'''
|
||||
__sub_version__ = '''20120202150737'''
|
||||
__sub_version__ = '''20120202193619'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2011'''
|
||||
|
||||
|
||||
@ -545,6 +545,13 @@ def build_image_cache(ic, min_rating, dest, tmp_path, preview_size=900):
|
||||
preview_metadata.read()
|
||||
raw.copy(preview_metadata)
|
||||
preview_metadata.write()
|
||||
|
||||
# remove temporary files...
|
||||
##!!! triple-check...
|
||||
try:
|
||||
os.remove(tmp_preview_path)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
jpg_path = jpegs[0][0][0] + '\\' + os.path.join(*(jpegs[0][0][1:] + [name])) + '.' + jpegs[0][1]
|
||||
# copy the jpeg to the cache...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user