2011-05-06 00:43:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from TreeWalker import TreeWalker
|
2011-05-23 11:25:45 +02:00
|
|
|
from sys import argv, exit
|
|
|
|
from CachePath import message
|
2011-05-06 00:43:25 +02:00
|
|
|
|
|
|
|
def main():
|
|
|
|
if len(argv) != 3:
|
|
|
|
print "usage: %s ALBUM_PATH CACHE_PATH" % argv[0]
|
|
|
|
return
|
2011-05-23 11:25:45 +02:00
|
|
|
try:
|
|
|
|
TreeWalker(argv[1], argv[2])
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
message("keyboard", "CTRL+C pressed, quitting.")
|
|
|
|
exit(-97)
|
2011-05-06 00:43:25 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|