mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 08:41:40 +00:00
added trivial opyion handling to buildcache.py...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f38c0143e5
commit
186832582c
@ -1,7 +1,7 @@
|
|||||||
#=======================================================================
|
#=======================================================================
|
||||||
|
|
||||||
__version__ = '''0.0.01'''
|
__version__ = '''0.0.01'''
|
||||||
__sub_version__ = '''20120924011938'''
|
__sub_version__ = '''20121212170329'''
|
||||||
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
||||||
|
|
||||||
|
|
||||||
@ -263,11 +263,24 @@ def build_local_cache(path):
|
|||||||
|
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
## PATH = 'images/cache-test/'
|
from optparse import OptionParser
|
||||||
PATH = 'L:/incoming/UNSORTED/Images/fav'
|
parser = OptionParser()
|
||||||
|
options, args = parser.parse_args()
|
||||||
|
|
||||||
|
##!!! need to define the path so that it shoes up in -h
|
||||||
|
|
||||||
|
if len(args) != 1:
|
||||||
|
parser.print_usage()
|
||||||
|
else:
|
||||||
|
PATH = args[0]
|
||||||
build_local_cache(PATH)
|
build_local_cache(PATH)
|
||||||
|
|
||||||
|
|
||||||
|
## PATH = 'images/cache-test/'
|
||||||
|
## PATH = 'L:/incoming/UNSORTED/Images/fav'
|
||||||
|
|
||||||
|
## build_local_cache(PATH)
|
||||||
|
|
||||||
## index = build_index(PATH, count=10)
|
## index = build_index(PATH, count=10)
|
||||||
##
|
##
|
||||||
## import IPython
|
## import IPython
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user