Ability to specify the directory to run poetry in instead of always using current directory
See original GitHub issue- [x ] I have searched the issues of this repo and believe that this is not a duplicate.
- [ x] I have searched the documentation and believe that my question is not covered.
Feature Request
I’d like to be able to run poetry run X
while also setting the current directory to whatever I want. Right now, this appears to be impossible, since I have to set the current directory to wherever my pyproject.toml
file is located instead. Can there be a command line option to override this default?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:113
- Comments:35 (7 by maintainers)
Top Results From Across the Web
Configuration | Documentation | Poetry - Python dependency ...
You can override the Data directory by setting the POETRY_DATA_DIR or POETRY_HOME environment variables. If POETRY_HOME is set, it will be given higher...
Read more >How can I make my project available in the poetry environment?
First, poetry must be able to find the package folder. poetry is able to do this by default, if the folder containing the...
Read more >Managing your Python dependencies with Poetry - Devopsbay
Poetry is the tool that combines the power of both pip and venv, making development process easier to handle. It has all the...
Read more >Configure a Poetry environment | PyCharm Documentation
Do one of the following: · Select Add Local Interpreter. · In the left-hand pane of the Add Python Interpreter dialog, select Poetry...
Read more >Dependency Management With Python Poetry
Add pyproject.toml to a Scripts Folder; Use an Existing ... A dependency manager like Python Poetry helps you specify, install, and resolve ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@noamraph something like this will also work.
And then execute the follwoing within the project context (any sub directory):
Is the requirement here for you to be able to run
foo
in a directory outside the project context? Something like this? (Possible proposal.)Extremely needed feature for multirepos!