Making watch directory configurable
This commit is contained in:
parent
0b68363c6e
commit
d93f0869a7
2 changed files with 5 additions and 4 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue