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