chdir to category before calling catmod.make()

This commit is contained in:
Neale Pickett 2016-10-25 03:49:32 +00:00
parent 68f290c617
commit 1237ab7059
1 changed files with 2 additions and 1 deletions

View File

@ -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