-
Kai Willadsen authored
Some modules such as runpy (and by extension, modules such as trace that use runpy) alter the value of __file__, which causes our directory-location logic to fail. This patch tries to detect this by checking the value of __file__ and falling back to sys.argv[0] when it looks to be dodgy. Based on a patch and suggestions from Peter Tyser.
bafe7db3