Skip to content

Transpiler doesn't cd into puzzle directory to build #154

@int00h5525

Description

@int00h5525

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

  1. 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)
  2. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions