File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/py-opentimelineio/opentimelineio/plugins Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,21 @@ def load_manifest():
266
266
plugin_entry_point = plugin .load ()
267
267
try :
268
268
plugin_manifest = plugin_entry_point .plugin_manifest ()
269
+
270
+ # this ignores what the plugin_manifest() function might
271
+ # put into source_files in favor of using the path to the
272
+ # python package as the unique identifier
273
+
274
+ manifest_path = os .path .abspath (
275
+ plugin_entry_point .__file__
276
+ )
277
+
278
+ if manifest_path in result .source_files :
279
+ continue
280
+
281
+ plugin_manifest .source_files = [manifest_path ]
282
+ plugin_manifest ._update_plugin_source (manifest_path )
283
+
269
284
except AttributeError :
270
285
if not pkg_resources .resource_exists (
271
286
plugin .module_name ,
@@ -291,6 +306,7 @@ def load_manifest():
291
306
manifest_stream .read ().decode ('utf-8' )
292
307
)
293
308
manifest_stream .close ()
309
+
294
310
plugin_manifest ._update_plugin_source (filepath )
295
311
plugin_manifest .source_files .append (filepath )
296
312
You can’t perform that action at this time.
0 commit comments