From 5128a728423b525dc51a7fe4cbb2accc926dae81 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