File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,14 @@ def protect_pytransform():
4242 raise RuntimeError('unexpected pytransform.py')
4343
4444 def check_lib_pytransform():
45+ platname = pytransform.sys.platform
46+ libname = '_pytransform.dylib' if platname.startswith('darwin') else \
47+ '_pytransform.dll' if platname.startswith('win') else \
48+ '_pytransform.so'
4549 if getattr(pytransform.sys, 'frozen', False):
46- filename = pytransform.os.path.join(pytransform.sys._MEIPASS, {filename} )
50+ filename = pytransform.os.path.join(pytransform.sys._MEIPASS, libname )
4751 else:
48- filename = pytransform.os.path.join({rpath}, {filename} )
52+ filename = pytransform.os.path.join({rpath}, libname )
4953 size = {size}
5054 n = size >> 2
5155 with open(filename, 'rb') as f:
You can’t perform that action at this time.
0 commit comments