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
All bot docker images are named slurk/<name>-bot
All bot classes are named <Name>Bot
I like that those follow a pattern.
However, our folders are named either <name>bot or only <name>
If we intend to use a template for bots, it would be positioned in the parent directory of all bot scripts #33 . The only two ways, I know of, how to import from there, are to manually manipulate syspath:
Or to execute the bot scripts as modules from the root directory and use absolute imports from there (as seen in #33):
python -m echo
I prefer the later, but at least on WSL (Windows 10, Ubuntu 20.04 LTS) + conda, the python interpreter chooses the standard library module math over a folder in the current working directory with the same name.
So the name math for the MathBot can't be used for this approach.
The text was updated successfully, but these errors were encountered:
All bot docker images are named
slurk/<name>-bot
All bot classes are named
<Name>Bot
I like that those follow a pattern.
However, our folders are named either
<name>bot
or only<name>
If we intend to use a template for bots, it would be positioned in the parent directory of all bot scripts #33 . The only two ways, I know of, how to import from there, are to manually manipulate syspath:
Or to execute the bot scripts as modules from the root directory and use absolute imports from there (as seen in #33):
python -m echo
I prefer the later, but at least on WSL (Windows 10, Ubuntu 20.04 LTS) + conda, the python interpreter chooses the standard library module math over a folder in the current working directory with the same name.
So the name
math
for the MathBot can't be used for this approach.The text was updated successfully, but these errors were encountered: