--------------------------------------------------------------------
| 793 | |
| 794 | // -------------------------------------------------------------------- |
| 795 | static G4bool FileFound(const G4String& fname) |
| 796 | { |
| 797 | G4bool qopen = false; |
| 798 | std::ifstream fs; |
| 799 | fs.open(fname.c_str(), std::ios::in); |
| 800 | if (fs.good()) { |
| 801 | fs.close(); |
| 802 | qopen = true; |
| 803 | } |
| 804 | return qopen; |
| 805 | } |
| 806 | |
| 807 | // -------------------------------------------------------------------- |
| 808 | G4String G4UImanager::FindMacroPath(const G4String& fname) const |