Currently the --python option expects you to pass the full path to the Python binary. It would be nice if it could figure out the full absolute path to the binary that is found using PATH, so you can simply pass:
⯠aiida-project create cwf --core-version none --python python3.10
Usage: aiida-project create [OPTIONS] NAME
Try 'aiida-project create --help' for help.
ââ Error ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŽ
â Invalid value for '--python': File 'python3.10' does not exist. â
â°ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŻ
In fact, it should be easy to also just avoid the python duplication, i.e.:
⯠aiida-project create cwf --core-version none --python 3.10
Usage: aiida-project create [OPTIONS] NAME
Try 'aiida-project create --help' for help.
ââ Error ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŽ
â Invalid value for '--python': File '3.10' does not exist. â
â°ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŻ
We should then also add some validation and useful error messages e.g. in case a Python version isn't installed.
Currently the
--python
option expects you to pass the full path to the Python binary. It would be nice if it could figure out the full absolute path to the binary that is found usingPATH
, so you can simply pass:In fact, it should be easy to also just avoid the
python
duplication, i.e.:We should then also add some validation and useful error messages e.g. in case a Python version isn't installed.