def setUp(self):
     self.save_manifest = otio.plugins.manifest._MANIFEST
     self.save_manifest_path = os.environ.get('OTIO_PLUGIN_MANIFEST_PATH')
     # find the path to the baselines/schemadef_example.json
     self.manifest_path = baseline_reader.path_to_baseline(SCHEMADEF_NAME)
     os.environ['OTIO_PLUGIN_MANIFEST_PATH'] = self.manifest_path
     otio.plugins.manifest.ActiveManifest(force_reload=True)
 def setUp(self):
     self.save_manifest = otio.plugins.manifest._MANIFEST
     self.save_manifest_path = os.environ.get('OTIO_PLUGIN_MANIFEST_PATH')
     # find the path to the baselines/schemadef_example.json
     self.manifest_path = baseline_reader.path_to_baseline(SCHEMADEF_NAME)
     os.environ['OTIO_PLUGIN_MANIFEST_PATH'] = self.manifest_path
     otio.plugins.manifest.ActiveManifest(force_reload=True)
Esempio n. 3
0
def create_manifest():
    """Create a temporary manifest."""
    full_baseline = baseline_reader.json_baseline_as_string(MANIFEST_PATH)

    temp_dir = tempfile.mkdtemp(prefix='test_otio_manifest')
    man_path = os.path.join(temp_dir, 'manifest')
    with open(man_path, 'w') as fo:
        fo.write(full_baseline)
    man = otio.plugins.manifest_from_file(man_path)
    man._update_plugin_source(baseline_reader.path_to_baseline(MANIFEST_PATH))
    return man
Esempio n. 4
0
def create_manifest():
    """Create a temporary manifest."""
    full_baseline = baseline_reader.json_baseline_as_string(MANIFEST_PATH)

    temp_dir = tempfile.mkdtemp(prefix='test_otio_manifest')
    man_path = os.path.join(temp_dir, 'manifest')
    with open(man_path, 'w') as fo:
        fo.write(full_baseline)
    man = otio.plugins.manifest_from_file(man_path)
    man._update_plugin_source(baseline_reader.path_to_baseline(MANIFEST_PATH))
    return man