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