2 * util.c: Simple runtime tools for the Win32 platform
7 * (C) 2002 Ximian, Inc. (http://www.ximian.com)
10 #include <mono/metadata/metadata.h>
11 #include <mono/os/util.h>
15 * @vm_filename: The pathname of the code invoking us (argv [0])
17 * Informs the runtime of the root directory for the Mono installation,
21 mono_set_rootdir (const char *vm_filename)
23 char *dir = g_dirname (vm_filename);
24 char *root = g_strconcat (dir, "/lib");
26 mono_assembly_setrootdir (root);