split ugly ternary to regular if
This commit is contained in:
parent
5c7899ae98
commit
af1ba1e191
@ -16,8 +16,10 @@ args = arguments.parse_args()
|
|||||||
|
|
||||||
TICKER_INTERVALS = ['1m', '5m']
|
TICKER_INTERVALS = ['1m', '5m']
|
||||||
|
|
||||||
dl_path = args.export if args.export and os.path.exists(args.export) \
|
dl_path = os.path.join(DEFAULT_DL_PATH, args.exchange)
|
||||||
else os.path.join(DEFAULT_DL_PATH, args.exchange)
|
if args.export:
|
||||||
|
dl_path = args.export
|
||||||
|
|
||||||
if not os.path.isdir(dl_path):
|
if not os.path.isdir(dl_path):
|
||||||
sys.exit(f'Directory {dl_path} does not exist.')
|
sys.exit(f'Directory {dl_path} does not exist.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user