Check if mac file exists.
This commit is contained in:
parent
6eb210d923
commit
a39961bed7
@ -296,6 +296,7 @@ void QmuSRSim::CheckSim()
|
||||
my $Geant4PATH= Geant4->text();
|
||||
my $SaveDataPATH= SaveData->text();
|
||||
my $ROOTSYSPATH=ROOTSYS->text();
|
||||
my $MAC=MAC->text();
|
||||
|
||||
# Check if any of them is empty or does not exist
|
||||
unless (-d $musrSimPATH) {
|
||||
@ -316,6 +317,12 @@ void QmuSRSim::CheckSim()
|
||||
$answtext=$answtext."ROOTSYS Path is wrong!\n";
|
||||
}
|
||||
|
||||
my $NewFile="$musrSim/run/$MAC.mac";
|
||||
unless (-e $NewFile) {
|
||||
$answ=0;
|
||||
$answtext=}answtext."Macro file $NewFile exists!\n";
|
||||
}
|
||||
|
||||
if ($answ==0) {
|
||||
print STDERR $answtext;
|
||||
my $HelpWindow = Qt::MessageBox::information( this, "Error!",$answtext);
|
||||
|
Loading…
x
Reference in New Issue
Block a user