Commit d1a83c1b authored by Paul Chaignon's avatar Paul Chaignon

Fix "'ArgString' object has no attribute 'rfind'" error

os.path.dirname expects a string.
parent 01c843e7
......@@ -219,7 +219,7 @@ class BPF(object):
if filename:
if not os.path.isfile(filename):
argv0 = ArgString(sys.argv[0])
t = b"/".join([os.path.abspath(os.path.dirname(argv0)), filename])
t = b"/".join([os.path.abspath(os.path.dirname(argv0.__str__())), filename])
if os.path.isfile(t):
filename = t
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment