Skip to content

Commit e3078d0

Browse files
authored
python: rework
1 parent 2579888 commit e3078d0

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

BUILD.pants

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pex_binary(
4747
name="python",
4848
entry_point="plugins/python.py",
4949
dependencies=[
50-
"plugins/python.py",
50+
"plugins/python.py:sources",
5151
"tmpy:sources",
5252
],
5353
)

plugins/python/progs/init-python.scm

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@
6767
(define (python-launcher)
6868
(if (url-exists? "$TEXMACS_HOME_PATH/plugins/python")
6969
(string-append "python3 "
70-
(getenv "TEXMACS_HOME_PATH")
71-
"/plugins/python/bin/python.pex")
70+
(string-quote
71+
(url->string
72+
(string->url
73+
"$TEXMACS_HOME_PATH/plugins/python/bin/python.pex"))))
7274
(string-append "python3 "
73-
(getenv "TEXMACS_PATH")
74-
"/plugins/python/bin/python.pex")))
75-
75+
(string-quote
76+
(url->string
77+
(string->url
78+
"$TEXMACS_PATH/plugins/python/bin/python.pex"))))))
7679

7780
(plugin-configure python
7881
(:winpath "python*" ".")

0 commit comments

Comments
 (0)