From 1237ab7059df23b2dd7a71f6235bb448e4467849 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 25 Oct 2016 03:49:32 +0000 Subject: [PATCH] chdir to category before calling catmod.make() --- tools/moth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/moth.py b/tools/moth.py index 7b2b526..663c33d 100644 --- a/tools/moth.py +++ b/tools/moth.py @@ -194,7 +194,8 @@ class Category: puzzle = Puzzle(self.seed, points) path = os.path.join(self.path, str(points)) if self.catmod: - self.catmod.make(points, puzzle) + with pushd(self.path): + self.catmod.make(points, puzzle) else: puzzle.read_directory(path) return puzzle