hpc_try_path.lsf 618 B

12345678910111213141516171819202122232425
  1. slash = "/";
  2. if (operatingsystem == "windows") {slash = "\\";}
  3. if (path_to_check != ""
  4. and path_to_check != "."
  5. and path_to_check != ".."
  6. and findstring(path_to_check,"result")== -1
  7. ) {
  8. errMsg = "";
  9. tmp_curdir = pwd;
  10. try {
  11. cd(path_to_check);
  12. cd(tmp_curdir);
  13. } catch(errMsg);
  14. if (errMsg == "") {
  15. full_path = tmp_curdir+slash+path_to_check;
  16. #?"--> test --> "+full_path;
  17. if ( findstring(paths_string, full_path+endl) == -1) {
  18. #?"adding";
  19. isNewPath = true;
  20. paths_string = paths_string + full_path+endl;
  21. }
  22. }
  23. }