Skip to content

Commit

Permalink
Fix OTPM en Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
erupnik committed Mar 15, 2018
1 parent c660a5c commit 344f324
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/uti_phgrm/CPP_Malt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,18 @@ cAppliMalt::cAppliMalt(int argc,char ** argv) :
aRatioConv = MMBinFile("mm3d Nikrup") + "\"(/ (+ (=F "
+ aOrtOutOrg.c_str() + " v0 @F) v1 @F v2 @F) 3)\" "
+ aRatioImConv.c_str();
aRatioImConvMv = "mv \"" + aRatioImConv + "\" " + "\"" + aOrtOutOrg + "\"";

//aRatioImConvMv = "mv \"" + aRatioImConv + "\" " + "\"" + aOrtOutOrg + "\"";

#if ELISE_windows
string src = aRatioImConv;
replace(src.begin(), src.end(), '/', '\\');
string dst = aOrtOutOrg;
replace(dst.begin(), dst.end(), '/', '\\');
aRatioImConvMv = std::string(SYS_MV) + " " + src + " " + dst;
#else
aRatioImConvMv = std::string(SYS_MV) + " " + aRatioImConv + " " + aOrtOutOrg;
#endif


}

Expand All @@ -1042,9 +1052,15 @@ cAppliMalt::cAppliMalt(int argc,char ** argv) :
std::string aRatioStatToXml = MMBinFile("mm3d StatIm") + aOrtOut.c_str()
+ " [0,0] RatioXmlExport=1 Masq=" + aRatioMasqName.c_str();


std::string aRatioMasqRm = "rm \"" + aRatioMasqName + "\"";


std::string aRatioMasqRm;
#if ELISE_windows
string src = aRatioMasqName;
replace(src.begin(), src.end(), '/', '\\');
aRatioMasqRm = "del " + src;
#else
aRatioMasqRm = std::string(SYS_RM)+ " \"" + aRatioMasqName + "\"";
#endif


mCom12PixMRadCal.push_back(aRatioCur.c_str());
Expand Down

0 comments on commit 344f324

Please sign in to comment.