Change PIS path

This commit is contained in:
Fred Boniface 2023-04-24 12:07:21 +01:00
parent 65febce05c
commit 6c0b016a9a
2 changed files with 2 additions and 1 deletions

View File

@ -2,4 +2,5 @@ FROM python:3.11-alpine
COPY ./requirements.txt /app/requirements.txt
RUN [ "pip", "install", "-r", "/app/requirements.txt" ]
COPY ./src /app/src
COPY ./data /app/data
CMD [ "python", "/app/src/main.py" ]

View File

@ -1,7 +1,7 @@
import yaml
def load(): # Programatically add a `toc` field to each entry.
with open("../data/pis/gwr.yaml", "r") as data:
with open("/app/data/pis/gwr.yaml", "r") as data:
try:
pis = yaml.safe_load(data)
print(pis)