Add main function driver.

This commit is contained in:
Jason A. Donenfeld 2011-05-05 18:43:25 -04:00
parent 4e02abb7a3
commit 65b81f0747
2 changed files with 13 additions and 5 deletions

13
main.py Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env python
from TreeWalker import TreeWalker
from sys import argv
def main():
if len(argv) != 3:
print "usage: %s ALBUM_PATH CACHE_PATH" % argv[0]
return
TreeWalker(argv[1], argv[2])
if __name__ == "__main__":
main()

View File

@ -1,5 +0,0 @@
#!/usr/bin/env python
from TreeWalker import TreeWalker
walker = TreeWalker("./test", "./cache")