File helper-version-in-cmdline.patch of Package python-aexpect

Index: aexpect-1.6.4/aexpect/client.py
===================================================================
--- aexpect-1.6.4.orig/aexpect/client.py
+++ aexpect-1.6.4/aexpect/client.py
@@ -25,6 +25,7 @@ import threading
 import shutil
 import select
 import subprocess
+import sys
 import locale
 import logging
 
@@ -179,7 +180,8 @@ class Spawn:
 
         # Start the server (which runs the command)
         if command:
-            helper_cmd = utils_path.find_command('aexpect_helper')
+            minor = sys.version_info.minor
+            helper_cmd = utils_path.find_command(f'aexpect_helper-3.{minor}')
             self._aexpect_helper = subprocess.Popen([helper_cmd],  # pylint: disable=R1732
                                                     shell=True,
                                                     stdin=subprocess.PIPE,
openSUSE Build Service is sponsored by