You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Now, what I want to happen, is when I'm in the project root, i.e outside the bot folder, to be able to run poetry run neo and 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 neo and 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 the bot folder is the current working directory?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
bot
folder, to be able to runpoetry run neo
and 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 neo
and 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 thebot
folder is the current working directory?Beta Was this translation helpful? Give feedback.
All reactions