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'''
|
||||
__sub_version__ = '''20120924011938'''
|
||||
__sub_version__ = '''20121212170329'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
||||
|
||||
|
||||
@ -263,10 +263,23 @@ def build_local_cache(path):
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
if __name__ == '__main__':
|
||||
## PATH = 'images/cache-test/'
|
||||
PATH = 'L:/incoming/UNSORTED/Images/fav'
|
||||
from optparse import OptionParser
|
||||
parser = OptionParser()
|
||||
options, args = parser.parse_args()
|
||||
|
||||
build_local_cache(PATH)
|
||||
##!!! 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)
|
||||
|
||||
|
||||
## PATH = 'images/cache-test/'
|
||||
## PATH = 'L:/incoming/UNSORTED/Images/fav'
|
||||
|
||||
## build_local_cache(PATH)
|
||||
|
||||
## index = build_index(PATH, count=10)
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user