-C / --directory equivalent for the toml conf? #10162
Unanswered
alchemicalkube
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if I'm being stupid or have missed something in the docs so apologies in advance (I am extremely tired) but I would like to know if it's possible to set a scripts working directory when run from the toml config. Example, my project setup tree is like so:
My toml config:
Now, what I want to happen, is when I'm in the project root, i.e outside the
botfolder, to be able to runpoetry run neoand it resolves all modules etc inside as if it was running from the bot directory. But, it doesn't, because it's evidently running from the working directory I am running the command from, resulting in things such as:To remediate that for now I can do
poetry -C ./bot run neoand it works just fine, but can I do something inside the poetry config to set it so whenever this script is run it makes it so thebotfolder is the current working directory?Beta Was this translation helpful? Give feedback.
All reactions