mirror of https://github.com/dirtbags/moth.git
chdir to category before calling catmod.make()
This commit is contained in:
parent
026d5d6c74
commit
5128a72842
|
@ -194,7 +194,8 @@ 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:
|
||||||
self.catmod.make(points, puzzle)
|
with pushd(self.path):
|
||||||
|
self.catmod.make(points, puzzle)
|
||||||
else:
|
else:
|
||||||
puzzle.read_directory(path)
|
puzzle.read_directory(path)
|
||||||
return puzzle
|
return puzzle
|
||||||
|
|
Loading…
Reference in New Issue