[][src]Function sciter::set_library

pub fn set_library(custom_path: &str) -> Result<(), String>

Set a custom path to the Sciter dynamic library.

Note: Must be called first before any other function.

Returns error if the specified library can not be loaded.

Example

if sciter::set_library("~/lib/sciter/bin.gtk/x64/libsciter-gtk.so").is_ok() {
  println!("loaded Sciter version {}", sciter::version());
}