We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a90d45 commit e0f5babCopy full SHA for e0f5bab
aaf/core.pyx
@@ -6,8 +6,15 @@ def register_all(path=None):
6
"""
7
Loads AAF dll and registers shared plugins.
8
9
+
10
+ cdef bytes c_path
11
12
if path:
- error_check(lib.AAFLoad(path))
13
+ if isinstance(path, unicode):
14
+ c_path = path.encode("ascii")
15
+ else:
16
+ c_path = path
17
+ error_check(lib.AAFLoad(c_path))
18
else:
19
error_check(lib.AAFLoad(NULL))
20
@@ -18,4 +25,4 @@ def register_all(path=None):
25
error_check(plugin_manager.RegisterSharedPlugins())
26
finally:
27
if plugin_manager:
21
- plugin_manager.Release()
28
+ plugin_manager.Release()
0 commit comments