mirror of https://github.com/dirtbags/moth.git
Merge branch 'v3.5_devel' of https://github.com/dirtbags/moth into substring-answers
This commit is contained in:
commit
8c1c68eea0
|
@ -27,6 +27,7 @@ def sha256hash(str):
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def pushd(newdir):
|
def pushd(newdir):
|
||||||
|
newdir = str(newdir)
|
||||||
curdir = os.getcwd()
|
curdir = os.getcwd()
|
||||||
LOGGER.debug("Attempting to chdir from %s to %s" % (curdir, newdir))
|
LOGGER.debug("Attempting to chdir from %s to %s" % (curdir, newdir))
|
||||||
os.chdir(newdir)
|
os.chdir(newdir)
|
||||||
|
@ -273,7 +274,7 @@ class Puzzle:
|
||||||
elif key == "scripts" and isinstance(val, list):
|
elif key == "scripts" and isinstance(val, list):
|
||||||
for script in val:
|
for script in val:
|
||||||
stream = open(script, "rb")
|
stream = open(script, "rb")
|
||||||
self.add_script_stream(stream, val)
|
self.add_script_stream(stream, script)
|
||||||
|
|
||||||
elif key == "objective":
|
elif key == "objective":
|
||||||
self.objective = val
|
self.objective = val
|
||||||
|
|
Loading…
Reference in New Issue