Message ID | 20221127212232.538210-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | 6f4ef770641a9657edaf8618f4c86dfb1116622c |
Headers | show |
Series | [1/2] data: Drop obsolete pydoc/path code | expand |
diff --git a/lib/bb/data.py b/lib/bb/data.py index 430d444203..22d314d6c2 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -28,11 +28,6 @@ the speed is more critical here. import sys, os, re import hashlib -if sys.argv[0][-5:] == "pydoc": - path = os.path.dirname(os.path.dirname(sys.argv[1])) -else: - path = os.path.dirname(os.path.dirname(sys.argv[0])) -sys.path.insert(0, path) from itertools import groupby from bb import data_smart
This code looks like it is from a time when the data module was executable. Nobody does that now and this usage of pydoc is long since obsolete/broken so clean up the code which doesn't do anything useful. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- lib/bb/data.py | 5 ----- 1 file changed, 5 deletions(-)