Code formatting.
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / tests / tests_aces_config.py
index 229c880..4d8a38a 100644 (file)
@@ -5,15 +5,21 @@
 Defines unit tests for *ACES* configuration.
 """
 
+from __future__ import division
+
 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)
 
@@ -32,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')