mirror of https://github.com/dirtbags/moth.git
chdir to category before calling catmod.make()
This commit is contained in:
parent
68f290c617
commit
1237ab7059
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue