mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-20 18:21:40 +00:00
added a couple of minor fixes to buildcache.py...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
186832582c
commit
440ee43ea6
@ -1,7 +1,7 @@
|
|||||||
#=======================================================================
|
#=======================================================================
|
||||||
|
|
||||||
__version__ = '''0.0.01'''
|
__version__ = '''0.0.01'''
|
||||||
__sub_version__ = '''20121212170329'''
|
__sub_version__ = '''20121212171440'''
|
||||||
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
||||||
|
|
||||||
|
|
||||||
@ -264,16 +264,19 @@ def build_local_cache(path):
|
|||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
options, args = parser.parse_args()
|
|
||||||
|
|
||||||
##!!! need to define the path so that it shoes up in -h
|
##!!! need to define the path so that it shoes up in -h
|
||||||
|
|
||||||
|
options, args = parser.parse_args()
|
||||||
|
|
||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
parser.print_usage()
|
parser.print_usage()
|
||||||
else:
|
else:
|
||||||
PATH = args[0]
|
IN_PATH = args[0]
|
||||||
build_local_cache(PATH)
|
IN_PATH = IN_PATH.replace('\\', '/')
|
||||||
|
build_local_cache(IN_PATH)
|
||||||
|
|
||||||
|
|
||||||
## PATH = 'images/cache-test/'
|
## PATH = 'images/cache-test/'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user