blob: 3fdb0a6d506a31dc8726d678c986f9a794f7d49b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 92264b5e868fb8b8399dfbb78b714ae5cf38c24e Mon Sep 17 00:00:00 2001
From: wangjiezhe <wangjiezhe@gmail.com>
Date: Wed, 8 Jun 2016 11:20:42 +0800
Subject: [PATCH 2/4] Sage plugin: fix `which` not found
---
plugins/sage/progs/init-sage.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/plugins/sage/progs/init-sage.scm b/plugins/sage/progs/init-sage.scm
index f3fb922..b18bf07 100644
--- a/plugins/sage/progs/init-sage.scm
+++ b/plugins/sage/progs/init-sage.scm
@@ -12,10 +12,16 @@
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(define (sage-launcher)
+ (with path "$TEXMACS_BIN_PATH/bin/tm_sage"
+ (string-append
+ "sage -python "
+ (url-concretize (unix->url path)))))
+
(plugin-configure sage
(:macpath "Sage*" "Contents/Resources/sage")
(:require (url-exists-in-path? "sage"))
- (:launch "sage -python `which tm_sage`")
+ (:launch ,(sage-launcher))
(:tab-completion #t)
(:session "Sage")
(:scripts "Sage"))
--
2.8.3
|