https://github.com/kastiglione created 
https://github.com/llvm/llvm-project/pull/183868

None

>From d59a07460f03a6df8bb9116072980b670fde8fe5 Mon Sep 17 00:00:00 2001
From: Dave Lee <[email protected]>
Date: Fri, 27 Feb 2026 15:59:41 -0800
Subject: [PATCH] [lldb] Fix sys.path manipulation failure in
 formatter_bytecode.py

---
 lldb/examples/python/formatter_bytecode.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lldb/examples/python/formatter_bytecode.py 
b/lldb/examples/python/formatter_bytecode.py
index bf4460fbe5976..abbd85d7a77b8 100644
--- a/lldb/examples/python/formatter_bytecode.py
+++ b/lldb/examples/python/formatter_bytecode.py
@@ -12,7 +12,8 @@
 import os, sys
 
 path = os.path.abspath(os.path.dirname(__file__))
-sys.path.remove(path)
+if path in sys.path:
+    sys.path.remove(path)
 
 import re
 import io

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to