Commit be7955b7 authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1731 from pchaigno/fix-test_complex

Fix "'ArgString' object has no attribute 'rfind'" error
parents dad0ad1f d1a83c1b
...@@ -219,7 +219,7 @@ class BPF(object): ...@@ -219,7 +219,7 @@ class BPF(object):
if filename: if filename:
if not os.path.isfile(filename): if not os.path.isfile(filename):
argv0 = ArgString(sys.argv[0]) 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): if os.path.isfile(t):
filename = t filename = t
else: 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