From 6b2838ef1c1a81999c4304f42acec5582c806e3d Mon Sep 17 00:00:00 2001 From: lazmond3 Date: Thu, 31 Oct 2024 00:44:15 +0900 Subject: [PATCH] Fix CI and solve #1146 --- mycli/packages/filepaths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mycli/packages/filepaths.py b/mycli/packages/filepaths.py index 79fe26dc..a91055d2 100644 --- a/mycli/packages/filepaths.py +++ b/mycli/packages/filepaths.py @@ -100,7 +100,7 @@ def guess_socket_location(): for r, dirs, files in os.walk(directory, topdown=True): for filename in files: name, ext = os.path.splitext(filename) - if name.startswith("mysql") and ext in ('.socket', '.sock'): + if name.startswith("mysql") and name != "mysqlx" and ext in ('.socket', '.sock'): return os.path.join(r, filename) dirs[:] = [d for d in dirs if d.startswith("mysql")] return None