From d93f0869a737b1befb6bd1c7a6584886af316172 Mon Sep 17 00:00:00 2001 From: Shane Frischkorn Date: Tue, 11 Jan 2022 18:21:19 +1000 Subject: [PATCH] Making watch directory configurable --- Dockerfile | 6 +++--- converter.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 65ca21d..05a092b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM python:3 -ADD converter.py / +ADD converter.py /app/ -RUN pip install OfxParser +RUN pip install ofxparse RUN pip install watchdog -CMD [ "python", "./converter.py" ] \ No newline at end of file +CMD [ "python", "./app/converter.py" ] \ No newline at end of file diff --git a/converter.py b/converter.py index f7540dc..8b2abe9 100644 --- a/converter.py +++ b/converter.py @@ -12,7 +12,8 @@ import watchdog.events import watchdog.observers DATE_FORMAT = "%d/%m/%Y" -WATCH_DIR = os.path.dirname(os.path.realpath(__file__)) +#WATCH_DIR = os.path.dirname(os.path.realpath(__file__)) +WATCH_DIR = '/mnt/data/' PATTERN = '*.qfx' BACKUP_DIR = 'Imported'