What is the best way to find a file "upwardly" in Python? (Ideally it would work on Windows too). E.g.,
>>> os.makedirs('/tmp/foo/bar/baz/qux')
>>> open('/tmp/foo/findme.txt', 'w').close()
>>> os.chdir('/tmp/foo/bar/baz/qux')
>>> findup('findme.txt')
'/tmp/foo/findme.txt'
As far as I can tell, there isn't anything in the Python standard library (although I'd love to be proven wrong). Also, googling around didn't turn up much that's definitive; I'm wondering if there's something out there that "everyone" uses.