this script is intended to ease material library maintenance. you can add materials to the library and write commetns for them. you have a folder structure on your HDD, which represents material categories, and you have one file per material. so you can change structure and move materials by working with folders and files. so you need to define a working path in the code.