From 3a902289f11e8d30fa747ee34e40a159333d4ab2 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Thu, 11 Jan 2018 13:58:06 +0200 Subject: [PATCH] testdata path to use os.path.join (#360) --- freqtrade/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 66e8b6c6b..3d70f6b25 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -3,6 +3,7 @@ import enum import json import logging import time +import os from typing import Any, Callable, Dict, List from jsonschema import Draft4Validator, validate @@ -129,7 +130,7 @@ def parse_args(args: List[str], description: str): '-dd', '--datadir', help='path to backtest data (default freqdata/tests/testdata', dest='datadir', - default='freqtrade/tests/testdata', + default=os.path.join('freqtrade', 'tests', 'testdata'), type=str, metavar='PATH', )