chdir into data_dir to simplify a few things
[geekigeeki.git] / macros / WordIndex.py
old mode 100755 (executable)
new mode 100644 (file)
index 818a884..b64a317
@@ -1,4 +1,4 @@
-def _macro_WordIndex(argv):
+def _macro_WordIndex(*args, **kvargs):
     s = make_index_key()
     pages = list(page_list())
     map = {}
@@ -10,7 +10,7 @@ def _macro_WordIndex(argv):
             except KeyError:
                 map[word] = [name]
 
-    all_words = map.keys()
+    all_words = list(map.keys())
     all_words.sort()
     last_letter = None
     # set title