• Kai Willadsen's avatar
    Fix uninstalled use with modules that change __file__ · bafe7db3
    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
Name
Last commit
Last update
bin Loading commit data...
data Loading commit data...
help Loading commit data...
meld Loading commit data...
po Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile Loading commit data...
NEWS Loading commit data...
meld.1 Loading commit data...
meld.doap Loading commit data...