src/Tools/Code/code_target.ML
changeset 69784 24bbc4e30e5b
parent 69698 1a249d1c884b
child 69906 55534affe445
--- a/src/Tools/Code/code_target.ML	Sat Feb 02 14:51:11 2019 +0100
+++ b/src/Tools/Code/code_target.ML	Sat Feb 02 15:52:14 2019 +0100
@@ -180,9 +180,10 @@
   (Export.export thy name [content]; writeln (Export.message thy ""));
 
 fun export_to_exports thy width (Singleton (extension, p)) =
-      export_information thy (generatedN ^ "." ^ extension) (Code_Printer.format [] width p)
+      export_information thy (Path.basic (generatedN ^ "." ^ extension))
+        (Code_Printer.format [] width p)
   | export_to_exports thy width (Hierarchy code_modules) = (
-      map (fn (names, p) => export_information thy (Path.implode (Path.make names))
+      map (fn (names, p) => export_information thy (Path.make names)
         (Code_Printer.format [] width p)) code_modules;
       ());