Making watch directory configurable
This commit is contained in:
@@ -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" ]
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user