Skip to content

Commit f2eab31

Browse files
fix(ocio): update output paths and logging for OCIO scripts
This commit updates the OCIO related Python scripts to use a new, consistent output directory for generated files and fixes a logging issue. create_ocio_config_json_file.py: Output paths for generated .md and .json files are now directed to cfg/site-cfg/flame-cfg/flame-scripts/opencolorio/flame_colortoolkit_files/` create_ocio_conversion_tasks.py: Input path for OCIO config JSON and output path for conversion task JSONs are updated to cfg/site-cfg/flame-cfg/flame-scripts/opencolorio/flame_colortoolkit_files/json create_ocio_flame_colortoolkit.py: Input path for conversion task JSONs is updated to "cfg/site-cfg/flame-cfg/flame-scripts/opencolorio/flame_colortoolkit_files/json" All three scripts now include force=True in their logging.basicConfig calls to ensure logging output is always visible in the console and written to log files.
1 parent 687aabb commit f2eab31

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

src/utils/common/create/create_ocio_config_json_file.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@
117117
'..',
118118
'cfg',
119119
'site-cfg',
120-
'ocio',
120+
'flame-cfg',
121+
'flame-scripts',
122+
'opencolorio',
123+
'flame_colortoolkit_files',
121124
(f'ocio_v{config.getMajorVersion()}_'
122125
f'{config.getMinorVersion()}_color_space_names.md')
123126
)
@@ -195,7 +198,10 @@
195198
'..',
196199
'cfg',
197200
'site-cfg',
198-
'ocio',
201+
'flame-cfg',
202+
'flame-scripts',
203+
'opencolorio',
204+
'flame_colortoolkit_files',
199205
(f'ocio_v{config.getMajorVersion()}_'
200206
f'{config.getMinorVersion()}_config.json')
201207
)

src/utils/common/create/create_ocio_conversion_tasks.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@
5454
'cfg',
5555
'site-cfg',
5656
'flame-cfg',
57-
'flame-presets',
58-
'colour_mgmt',
59-
'transforms',
60-
'flame-colortoolkit',
57+
'flame-scripts',
58+
'opencolorio',
59+
'flame_colortoolkit_files',
6160
'json'
6261
)
6362
)
@@ -210,7 +209,10 @@ def get_latest_ocio_config_file():
210209
'..',
211210
'cfg',
212211
'site-cfg',
213-
'ocio'
212+
'flame-cfg',
213+
'flame-scripts',
214+
'opencolorio',
215+
'flame_colortoolkit_files'
214216
)
215217
)
216218
if not os.path.isdir(json_dir):

src/utils/common/create/create_ocio_flame_colortoolkit.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@
4141
'cfg',
4242
'site-cfg',
4343
'flame-cfg',
44-
'flame-presets',
45-
'colour_mgmt',
46-
'transforms',
47-
'flame-colortoolkit',
44+
'flame-scripts',
45+
'opencolorio',
46+
'flame_colortoolkit_files',
4847
'json'
4948
)
5049
)

0 commit comments

Comments
 (0)