X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Ftests%2Ftests_aces_config.py;h=4d8a38a9e01da3a0d34c6bd6e338f3d7c9316905;hp=f41349e6a788eea512555eb6125272b7dfe9da7a;hb=cad9d48a0f1067769435904348e9fffeffd25eb9;hpb=89360f70a6c71121580324ed3c125a83c3973887 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 f41349e..4d8a38a 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,11 +11,15 @@ 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.create_aces_config import ( +from aces_ocio.aces_config import ( ACES_OCIO_CTL_DIRECTORY_ENVIRON, create_ACES_config) @@ -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')