I think that's fine, but a comment on the presence of the "" would be useful.
Moreover the "continue is ugly, what about:

'''python
if os.path.isdir(path):
  libgomp_path = find_library(os.path.join(path, "libgomp"))
'''