1 #include "file-path.hh"
8 char const *extensions[] = {"ly", "", 0};
11 getcwd (cwd, PATH_MAX);
12 string ly_dir = string (getenv ("top-src-dir")) + "/ly";
13 parse_path (string (1, PATHSEP) + ly_dir);
14 string file_name = find (file, extensions);
15 EQUAL (file_name.substr (file_name.rfind ('/')), "/init.ly");
17 file_name = find (file, extensions);
18 EQUAL (file_name, ly_dir + "/init.ly");