File: fix_python3_server.patch

package info (click to toggle)
xraylarch 0.9.81%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 118,072 kB
  • sloc: python: 72,755; fortran: 6,978; makefile: 1,878; ansic: 1,562; sh: 155; javascript: 104
file content (21 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Neil Williams <codehelp@debian.org>
Date: Thu, 3 Mar 2022 09:58:08 +0000
Subject: Fix embedded python interpreter call to use Python3

---
 larch/xmlrpc_server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/larch/xmlrpc_server.py b/larch/xmlrpc_server.py
index c4b2318..d56bd85 100644
--- a/larch/xmlrpc_server.py
+++ b/larch/xmlrpc_server.py
@@ -302,7 +302,7 @@ def spawn_server(port=4966, wait=True, timeout=30):
     optionally waiting to confirm connection
     """
     topdir = sys.exec_prefix
-    pyexe = Path(topdir, 'bin', 'python').as_posix()
+    pyexe = Path(topdir, 'bin', 'python3').as_posix()
     bindir = 'bin'
     if uname.startswith('win'):
         bindir = 'Scripts'