hatch
hatch copied to clipboard
[dirs.env] relative path with additional project name folder
Great and interesting project!
I'm just moving my first steps to set-up a project but ...
I've set in the global config.toml the environment to be placed in a path in the project folder.
[dirs.env]
virtual = ".env"
If I run
hatch env create
I'm supposed to get:
projectName
├── .env
│ └── Script
│ └── ...
├── src
│ └── projectName
│ ├── __about__.py
│ └── __init__.py
├── tests
│ └── __init__.py
├── LICENSE.txt
├── README.md
└── pyproject.toml
but the environment is inside a folder with the project name that is quite useless:
projectName
├── .env
│ └── projectName <----- ??!?!
│ └── Script
│ └── ...
├── src
│ └── projectName
│ ├── __about__.py
│ └── __init__.py
├── tests
│ └── __init__.py
├── LICENSE.txt
├── README.md
└── pyproject.toml
How can I avoid this? It makes sense just for the absolute path to keep separate the different environments stored in the same folder.
Thank you!!!
Info:
- Hatch-1.9.3-x64.msi
Hey there! I should document this but the directory used for the default environment is actually the name of the project so that when you hatch shell the prompt looks nicer than default.