From bac8fe03757f010e000b67bf58e3b17da8f47e0a Mon Sep 17 00:00:00 2001 From: Haarm-Pieter Duiker Date: Tue, 23 Jun 2015 12:33:00 -0700 Subject: [PATCH] Updated to work from the current config and python directory structure. --- aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py index 40210f5..f3dab51 100644 --- a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py +++ b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py @@ -11,9 +11,13 @@ import hashlib import os import re import shutil +import sys import tempfile import unittest +sys.path.append(os.path.abspath( + os.path.join(os.path.dirname(__file__), '..', '..') ) ) + from aces_ocio.utilities import files_walker from aces_ocio.aces_config import ( ACES_OCIO_CTL_DIRECTORY_ENVIRON, @@ -34,9 +38,9 @@ __all__ = ['REFERENCE_CONFIG_ROOT_DIRECTORY', # TODO: Investigate how the current config has been generated to use it for # tests. -# REFERENCE_CONFIG_ROOT_DIRECTORY = os.path.abspath( -# os.path.join(os.path.dirname(__file__), '..', '..', '..')) -REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces' +REFERENCE_CONFIG_ROOT_DIRECTORY = os.path.abspath( + os.path.join(os.path.dirname(__file__), '..', '..', '..')) +#REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces' HASH_TEST_PATTERNS = ('\.3dl', '\.lut', '\.csp') UNHASHABLE_TEST_PATTERNS = ('\.icc', '\.ocio') -- 1.7.10.4