summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-11-11 16:05:34 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-11-11 16:05:34 -0800
commit6a42535ffa89f8501b7d41416bd03e39c9662b0e (patch)
tree98568478d6c3da0d08adc221fcb4fd9e8f5f0baa
parentPass the targets instead of the BUILD file to `pants--complete-read' (diff)
downloadpants.el-6a42535ffa89f8501b7d41416bd03e39c9662b0e.tar.gz
Fix the configuration for the Python REPL.
-rw-r--r--pants.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/pants.el b/pants.el
index 13a9a82..c1834e9 100644
--- a/pants.el
+++ b/pants.el
@@ -90,6 +90,8 @@
     (set (make-local-variable 'python-shell-exec-path) '(pants-source-tree-root))
     (set (make-local-variable 'python-shell-interpreter) pants-source-tree-root)
     (set (make-local-variable 'python-shell-interpreter-args) pants-repl-command)
+    (set (make-local-variable 'python-shell-prompt-detect-failure-warning) nil)
+    (run-python pants-repl-command t)
     (python-shell-switch-to-shell)))
 
 (defun pants--build-action (target)