Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -71,6 +71,19 @@ inline std::string to_xml(const std::string& a_string){
|
||||
return s;
|
||||
}
|
||||
|
||||
inline void to_win(std::string& a_string) {
|
||||
replace(a_string,"/cygdrive/c","C:"); // CYGWIN.
|
||||
replace(a_string,"/mnt/c","C:"); // WSL.
|
||||
replace(a_string,'/','\\');
|
||||
}
|
||||
|
||||
inline void to_win_python(std::string& a_string) {
|
||||
replace(a_string,"/cygdrive/c","c:"); // CYGWIN.
|
||||
replace(a_string,"/mnt/c","c:"); // WSL. (Python wants c: in lowercase).
|
||||
replace(a_string,"C:","c:");
|
||||
replace(a_string,'\\','/');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user