Making watch directory configurable

This commit is contained in:
2022-01-11 18:21:19 +10:00
parent 0b68363c6e
commit d93f0869a7
2 changed files with 5 additions and 4 deletions

View File

@@ -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" ]
CMD [ "python", "./app/converter.py" ]

View File

@@ -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'