#include "file-path.hh"
#include <limits.h>
+#include <unistd.h>
#include "yaffut.hh"
#include "config.hh"
char const *extensions[] = {"ly", "", 0};
string file = "init";
char cwd[PATH_MAX];
- if (!getcwd (cwd, PATH_MAX)) {
- cerr << "Could not get current work directory\n";
- exit (1);
- }
+ if (!getcwd (cwd, PATH_MAX))
+ {
+ cerr << "Could not get current work directory\n";
+ exit (1);
+ }
string ly_dir = string (getenv ("top-src-dir")) + "/ly";
parse_path (string (1, PATHSEP) + ly_dir);
string file_name = find (file, extensions);