Closed Sunbreak closed 3 years ago
+ g_autofree gchar* executable_dir = get_executable_dir();
+ g_autofree gchar* libfoo_path =
+ g_build_filename(self_exe, "lib", "libfoo.so", nullptr);
+ setenv("LIBFOO_PATH", libfoo_path, 0);
DynamicLibrary.open(Platform.environment['LIBFOO_PATH'])
Ref
DynamicLibrary.open('${File(Platform.resolvedExecutable).parent.path}/lib/shared_library/lib.so')
Ref
Signed-off-by: wangkun wangkun@woodemi.com