diff --git a/twitch_stream_announcer/.vscode/launch.json b/twitch_stream_announcer/.vscode/launch.json index 66538b1..9511468 100644 --- a/twitch_stream_announcer/.vscode/launch.json +++ b/twitch_stream_announcer/.vscode/launch.json @@ -9,11 +9,12 @@ "type": "debugpy", "request": "launch", "cwd": "${workspaceFolder}", - "program": "src/stream_announcer.py", + "program": "${file}", "console": "integratedTerminal", "justMyCode": true, "env": { "PONY_DEBUG": "False", + "PYTHONPATH": "${workspaceFolder}", } }, ] diff --git a/twitch_stream_announcer/Dockerfile b/twitch_stream_announcer/Dockerfile index 8ee9851..43b296b 100644 --- a/twitch_stream_announcer/Dockerfile +++ b/twitch_stream_announcer/Dockerfile @@ -11,4 +11,6 @@ RUN poetry install --without dev COPY src /root/stream_announcer/src +ENV PYTHONPATH=$PYTHONPATH:/root/stream_announcer + CMD ["poetry", "run", "python", "src/stream_announcer.py"]