Skip to content

Commit

Permalink
Merge pull request iovisor#1731 from pchaigno/fix-test_complex
Browse files Browse the repository at this point in the history
Fix "'ArgString' object has no attribute 'rfind'" error
  • Loading branch information
yonghong-song committed May 6, 2018
2 parents dad0ad1 + d1a83c1 commit be7955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _find_file(filename):
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:
Expand Down

0 comments on commit be7955b

Please sign in to comment.