testdata path to use os.path.join (#360)

This commit is contained in:
Samuel Husso 2018-01-11 13:58:06 +02:00 committed by Michael Egger
parent 3ac3ead2cf
commit 3a902289f1

View File

@ -3,6 +3,7 @@ import enum
import json import json
import logging import logging
import time import time
import os
from typing import Any, Callable, Dict, List from typing import Any, Callable, Dict, List
from jsonschema import Draft4Validator, validate from jsonschema import Draft4Validator, validate
@ -129,7 +130,7 @@ def parse_args(args: List[str], description: str):
'-dd', '--datadir', '-dd', '--datadir',
help='path to backtest data (default freqdata/tests/testdata', help='path to backtest data (default freqdata/tests/testdata',
dest='datadir', dest='datadir',
default='freqtrade/tests/testdata', default=os.path.join('freqtrade', 'tests', 'testdata'),
type=str, type=str,
metavar='PATH', metavar='PATH',
) )