Skip to content

Hack to make `plom-demo` work in-tree

Colin Macdonald requested to merge hack_in_tree into in_tree_demo

This is a fix for #2237 (closed). It allows this to work in-place in a git clone:

python3 -m plom-demo --in-tree-dev

It works by hacking PYTHONPATH env var. It works on my computer...


Choice A

this MR.

Choice B

Document somewhere (in python -m plom.demo --help?) how to do this yourself. I.e., something like:

If you are trying to run the demo within the Plom source code, you may need to do something like::

    export PYTHONPATH=.:$PYTHONPATH
    python3 -m plom.demo

@chrisyifanjin and @arechnitzer what do you think of this? A or B?

Merge request reports