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=61acfa5df282fb806c33e104e7011ae4d8701cc5;hp=dc29df299a4d197d58b4050dbe5ee73dbac50586;hb=4f72f58a00847daade7c7edbba95c70d95b3e4ec;hpb=caf4eb997d599146cc5df9b46f089e30d2e81dfc 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 dc29df2..61acfa5 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 @@ -9,6 +9,12 @@ import hashlib import os import re import shutil +import sys + +# TODO: Temporary ugly thing to be discussed, ideally the package should be +# in PYTHONPATH. +sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..')) + import tempfile import unittest @@ -33,7 +39,7 @@ __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__), '..', '..')) +# os.path.join(os.path.dirname(__file__), '..', '..', '..')) REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces' HASH_TEST_PATTERNS = ('\.3dl', '\.lut', '\.csp') @@ -113,7 +119,7 @@ class TestACESConfig(unittest.TestCase): """ self.assertTrue(create_ACES_config(self.__aces_ocio_ctl_directory, - self.__temporary_directory)) + self.__temporary_directory)) reference_hashes = self.directory_hashes( REFERENCE_CONFIG_ROOT_DIRECTORY,