2020-12-02 07:33:34 +00:00
|
|
|
--- a/tool/lemon.c
|
|
|
|
+++ b/tool/lemon.c
|
2023-08-31 08:29:50 +00:00
|
|
|
@@ -3686,6 +3686,8 @@
|
2010-03-10 15:20:36 +00:00
|
|
|
tpltname = buf;
|
|
|
|
}else if( access(templatename,004)==0 ){
|
|
|
|
tpltname = templatename;
|
|
|
|
+ }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
|
|
|
|
+ tpltname = "/usr/share/lemon/lempar.c";
|
|
|
|
}else{
|
2023-08-31 08:29:50 +00:00
|
|
|
toFree = tpltname = pathsearch(lemp->argv[0],templatename,0);
|
2010-03-10 15:20:36 +00:00
|
|
|
}
|