l'outil cherchait un .scapin sans le chemin
le pb est du, je pense, a changement du comportement de autbasename() de la librairie Aut, car scapin a toujours fonctionne et dans le code que j'ai visualise aujourd'hui scapin ne pouvait chercher le bon fichier .scapin !
This commit is contained in:
parent
5e6616dd88
commit
f8d13777ed
|
@ -576,14 +576,17 @@ scanparam *ScanParseParamFile( FileName, FlagDebug )
|
||||||
FILE *ParamFile;
|
FILE *ParamFile;
|
||||||
char ParamBuffer[ 512 ];
|
char ParamBuffer[ 512 ];
|
||||||
|
|
||||||
|
#if 0 /*error: autbasename() removes the path.
|
||||||
|
easier not to touch the filename*/
|
||||||
FileName = autbasename( FileName, "scapin" );
|
FileName = autbasename( FileName, "scapin" );
|
||||||
sprintf( ParamBuffer, "%s.scapin", FileName );
|
sprintf( ParamBuffer, "%s.scapin", FileName );
|
||||||
|
#endif
|
||||||
|
|
||||||
ParamFile = fopen( ParamBuffer, "r" );
|
ParamFile = fopen( FileName, "r" );
|
||||||
|
|
||||||
if ( ParamFile == (FILE *)0 )
|
if ( ParamFile == (FILE *)0 )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "\t### Unable to parse parameter file %s.scapin\n", FileName );
|
fprintf( stderr, "\t### Unable to open parameter file %s\n", FileName );
|
||||||
autexit( 1 );
|
autexit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue