src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML
changeset 69366 b6dacf6eabe3
parent 65999 ee4cf96a9406
child 69597 ff784d5a5bfb
--- a/src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML	Wed Nov 28 15:38:18 2018 +0100
+++ b/src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML	Wed Nov 28 16:14:31 2018 +0100
@@ -955,13 +955,13 @@
   let
     val config =
       {cautious = cautious,
-       problem_name = SOME (TPTP_Problem_Name.parse_problem_name (Path.base_name file_name))}
+       problem_name = SOME (TPTP_Problem_Name.parse_problem_name (Path.file_name file_name))}
   in interpret_file' config [] path_prefixes file_name end
 
 fun import_file cautious path_prefixes file_name type_map const_map thy =
   let
     val prob_name =
-      TPTP_Problem_Name.parse_problem_name (Path.base_name file_name)
+      TPTP_Problem_Name.parse_problem_name (Path.file_name file_name)
     val (result, thy') =
       interpret_file cautious path_prefixes file_name type_map const_map thy
   (*FIXME doesn't check if problem has already been interpreted*)