From 1bda94c44dd4d029055847f1e4b51849318a720c Mon Sep 17 00:00:00 2001 From: slackish Date: Tue, 18 Oct 2016 16:06:11 -0600 Subject: [PATCH] checking in what i have --- package-puzzles | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package-puzzles b/package-puzzles index 979feba..18bad55 100755 --- a/package-puzzles +++ b/package-puzzles @@ -66,12 +66,13 @@ if __name__ == '__main__': for categorypath in glob.glob(os.path.join(categorydir, "*", "puzzle.moth")): points = categorypath.split(os.sep)[-2] # directory before '/puzzle.moth' categorypath = os.path.dirname(categorypath) + print(categorypath) try: points = int(points) except: print("Failed to identify points on: %s" % categorypath, file=sys.stderr) continue - puzzle = puzzles.Puzzle(open(categorypath), category_seed) + puzzle = puzzles.Puzzle(category_seed, categorypath) puzzles_dict[points] = puzzle # build mapping, answers, and summary