Description
In v3, the dev server cd'ed into a puzzle/category's directory so that any puzzle definitions could refer to local paths. In v4, we have to introduce hacks to determine the path to a local file
Steps to Reproduce
- Create a puzzle which refers to a local file (/puzzles/foo/1/mkpuzzle, in Python;
open("foo.txt", "r"), and file /puzzles/foo/1/foo.txt)
- From /, run
transpile puzzle -dir /puzzles/foo/1/
Expected behavior:
mkpuzzle loads local file foo.txt from /puzzles/foo/1/foo.txt
Actual behavior:
mkpuzzle attempt to load file foo.txt from /foo.txt
Reproduces how often:
100%
Versions
v4