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,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)
|
||||||
|
|
Loading…
Reference in New Issue