diff --git a/piker/config.py b/piker/config.py index b45011d1..a8f5f494 100644 --- a/piker/config.py +++ b/piker/config.py @@ -28,7 +28,7 @@ from typing import Optional from pathlib import Path from bidict import bidict import toml - +from piker.testing import TEST_CONFIG_DIR_PATH from .log import get_logger log = get_logger('broker-config') @@ -78,7 +78,7 @@ def get_app_dir(app_name, roaming=True, force_posix=False): # within the tractor runtimes and store testing config data # outside of the users filesystem if "pytest" in sys.modules: - app_name += '/_testing' + app_name += TEST_CONFIG_DIR_PATH # if WIN: if platform.system() == 'Windows': diff --git a/piker/testing/__init__.py b/piker/testing/__init__.py index e69de29b..5e3ac93a 100644 --- a/piker/testing/__init__.py +++ b/piker/testing/__init__.py @@ -0,0 +1 @@ +TEST_CONFIG_DIR_PATH = '_testing'