invoke Python with "no bytecode" option to avoid litering Isabelle source directory with ".pyc" files (which can be problematic for a number of reasons)
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML Thu Sep 12 09:59:45 2013 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML Thu Sep 12 10:05:10 2013 +0200
@@ -165,12 +165,12 @@
val model_dir = File.shell_path (mash_model_dir ())
val core = "--inputFile " ^ cmd_file ^ " --predictions " ^ sugg_file
val command =
- "cd \"$ISABELLE_SLEDGEHAMMER_MASH\"/src; " ^
- "./mash.py --quiet" ^
- " --outputDir " ^ model_dir ^
- " --modelFile=" ^ model_dir ^ "/model.pickle" ^
- " --dictsFile=" ^ model_dir ^ "/dict.pickle" ^
- " --log " ^ log_file ^ " " ^ core ^
+ "cd \"$ISABELLE_SLEDGEHAMMER_MASH\"/src; \
+ \python -B ./mash.py --quiet\
+ \ --outputDir " ^ model_dir ^
+ " --modelFile=" ^ model_dir ^ "/model.pickle\
+ \ --dictsFile=" ^ model_dir ^ "/dict.pickle\
+ \ --log " ^ log_file ^ " " ^ core ^
(if extra_args = [] then "" else " " ^ space_implode " " extra_args) ^
" >& " ^ err_file ^
(if background then " &" else "")