added a couple of minor fixes to buildcache.py...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-12-12 17:16:31 +04:00
parent 186832582c
commit 440ee43ea6

View File

@ -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/'