chdir to category before calling catmod.make()

This commit is contained in:
Neale Pickett 2016-10-25 03:49:32 +00:00
parent 026d5d6c74
commit 5128a72842
1 changed files with 2 additions and 1 deletions

View File

@ -194,6 +194,7 @@ class Category:
puzzle = Puzzle(self.seed, points) puzzle = Puzzle(self.seed, points)
path = os.path.join(self.path, str(points)) path = os.path.join(self.path, str(points))
if self.catmod: if self.catmod:
with pushd(self.path):
self.catmod.make(points, puzzle) self.catmod.make(points, puzzle)
else: else:
puzzle.read_directory(path) puzzle.read_directory(path)