Closed gabestein closed 7 years ago
This is the intended behavior. Muck projects are meant to be written with all targets relative to the project root. Yours was an unusual case because you were using a very early version and trying out a first example from within the muck directory; since then muck has become installable and you would do something like cd my-project && muck target.ext
.
This might not be the intended Muck usage, but I suspect it will crop up in other use cases.
If I create a project directory inside the muck folder (say,
_misc
), and try to runpython3 muck.py _misc/target.ext
, all muck sources intarget.ext
need to be relative to the muck root directory, rather than the_misc
directory.Put another way, if I have the file
_misc/target.ext
and it includes something likejson = muck.source('db.json')
, runningpython3 muck.py _misc/target.ext
will exit with the error:muck error: seed-db.json: no source candidates matching 'seed-db'
. This can be resolved by changing the muck source in_misc/target.ext
tomuck.source('_misc/db.json)
. But I'm expecting it to know that the root for the project is_misc
.