src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML
changeset 48881 46e053eda5dd
parent 48829 6ed588c4f963
child 49323 6dff6b1f5417
--- a/src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML	Wed Aug 22 12:17:55 2012 +0200
+++ b/src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML	Wed Aug 22 12:47:49 2012 +0200
@@ -878,10 +878,11 @@
 
 val _ =
   Outer_Syntax.improper_command @{command_spec "import_tptp"} "import TPTP problem"
-    (Parse.path >> (fn path =>
+    (Parse.path >> (fn name =>
       Toplevel.theory (fn thy =>
-       (*NOTE: assumes include files are located at $TPTP/Axioms
-         (which is how TPTP is organised)*)
-       import_file true [Path.dir path, Path.explode "$TPTP"] path [] [] thy)))
+        let val path = Path.explode name
+        (*NOTE: assumes include files are located at $TPTP/Axioms
+          (which is how TPTP is organised)*)
+        in import_file true [Path.dir path, Path.explode "$TPTP"] path [] [] thy end)))
 
 end