Skip to content
Snippets Groups Projects
Commit fc8ad559 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

append locally installed packages to PYTHON_PATH for tests

parent c2137b66
No related branches found
No related tags found
No related merge requests found
import sys
import os
PYTHON_VERSION = sys.version_info
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PLUGIN_ROOT_DIR = os.path.realpath(os.path.abspath(os.path.join(SCRIPT_DIR, '..')))
PACKAGES_INSTALL_DIR = os.path.join(PLUGIN_ROOT_DIR, f'python{PYTHON_VERSION.major}.{PYTHON_VERSION.minor}')
sys.path.append(PACKAGES_INSTALL_DIR) # TODO: check for a less intrusive way to do this
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment