From 34a8b9006770ecdaa93e17fa9138916d093c9e72 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Tue, 19 Dec 2017 09:11:35 +0000 Subject: [PATCH] device_tests: Fix tx_api.cache_dir --- tests/device_tests/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/device_tests/common.py b/tests/device_tests/common.py index fcf749b..4b01f0d 100644 --- a/tests/device_tests/common.py +++ b/tests/device_tests/common.py @@ -20,12 +20,13 @@ from __future__ import print_function import unittest import hashlib +import os from trezorlib.client import TrezorClient, TrezorClientDebugLink from trezorlib import tx_api - -tx_api.cache_dir = '../txcache' +tests_dir = os.path.dirname(os.path.abspath(__file__)) +tx_api.cache_dir = os.path.join(tests_dir, '../txcache') try: