From dd08d95f7d6cc5c1bd23beb0684e3041b6118bb1 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:40:50 +0000 Subject: [PATCH] lilypond-0.0.65 --- flower/path.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/flower/path.cc b/flower/path.cc index 3a2e5dfbc0..bd6a6660d2 100644 --- a/flower/path.cc +++ b/flower/path.cc @@ -49,13 +49,6 @@ split_path(String path, } } -File_path::File_path(String pref) -{ - add("."); - add(pref); -} - - /** find a file. It will search in the current dir, in the construction-arg, and in any other added path, in this order. @@ -64,13 +57,13 @@ String File_path::find(String nm)const { - fdebug << "looking for " << nm ; + fdebug << "looking for " << nm << ": "; if ( !nm.length_i() || ( nm == "-" ) ) return nm; for (int i=0; i < size(); i++) { String path = (*this)[i]; - path+= "/"+nm; + path+= String(path.length_i()? "/":"")+nm; fdebug << path << "? "; FILE *f = fopen(path, "r"); // ugh! -- 2.39.5