Commits

Ed Brannin committed 2b61167

Now pointing to the right folder.

Comments (0)

Files changed (1)

   except:
     print "%s has an error: %s" % (path, sys.exc_info()[1])
 
+try:
+  path = sys.argv[1]
+except IndexError:
+  path = "../current-site/www.holyname-greece.org/"
 
-for root, dirs, files in os.walk('.'):
+for root, dirs, files in os.walk(path):
   for f in files:
     if 'htm' in f:
       handle(os.path.join(root, f))