PROJECT_DIRECTORY is hard-coded. This makes it difficult for users who want to publish their libraries to PyPI to do so while retaining ease of autogeneration. They have to write a script which modifies this variable after autogeneration.
We can make this easier by replacing the PROJECT_DIRECTORY value with the path of the project directory relative to the output directory (as passed to moonworm generate-brownie).
See: https://github.com/bugout-dev/moonworm/blob/9bd62ee7e4d58ad9124edc1a3aae5e1b3a6834e6/moonworm/generators/brownie_contract.py.template
PROJECT_DIRECTORY
is hard-coded. This makes it difficult for users who want to publish their libraries to PyPI to do so while retaining ease of autogeneration. They have to write a script which modifies this variable after autogeneration.We can make this easier by replacing the
PROJECT_DIRECTORY
value with the path of the project directory relative to the output directory (as passed tomoonworm generate-brownie
).