1 #include "file-path.hh"
10 char const *extensions[] = {"ly", "", 0};
13 if (!getcwd (cwd, PATH_MAX)) {
14 cerr << "Could not get current work directory\n";
17 string ly_dir = string (getenv ("top-src-dir")) + "/ly";
18 parse_path (string (1, PATHSEP) + ly_dir);
19 string file_name = find (file, extensions);
20 EQUAL (file_name.substr (file_name.rfind ('/')), "/init.ly");
22 file_name = find (file, extensions);
23 EQUAL (file_name, ly_dir + "/init.ly");