X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frelocate.cc;h=42c54a65ff3863bf3d9635b9a21b3956f46698ed;hb=18ad3a686c7b46eb50f8abdcd5070ed58558f66b;hp=2ff9fc44d37e7721780bf791d07d4398ac588f1e;hpb=38e0fd809d01de319d40224b5d2279888304b2d3;p=lilypond.git diff --git a/lily/relocate.cc b/lily/relocate.cc index 2ff9fc44d3..42c54a65ff 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -230,12 +230,8 @@ setup_paths (char const *argv0_ptr) if (char const *env = getenv ("LILYPOND_DATADIR")) { -#ifdef __MINGW32__ /* Normalize file name. */ lilypond_datadir = File_name (env).to_string (); -#else - lilypond_datadir = env; -#endif } /* When running from build dir, a full LILYPOND_DATADIR is set-up at @@ -245,6 +241,9 @@ setup_paths (char const *argv0_ptr) if (!is_dir (lilypond_datadir.c_str ()) && is_dir (build_datadir_current.c_str ())) lilypond_datadir = build_datadir_current; + + + lilypond_datadir = File_name (lilypond_datadir).canonicalized().to_string(); global_path.append ("");