Changeset 8e516fd


Ignore:
Timestamp:
Aug 11, 2020, 5:30:54 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
7874d77
Parents:
129674b
Message:

Fixed issue where python script would not see through symlink to itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    r129674b r8e516fd  
    246246# transform path to canonical form
    247247def canonical_path(path):
    248         abspath = os.path.abspath(__main__.__file__)
     248        abspath = os.path.abspath(os.path.realpath(__main__.__file__))
    249249        dname = os.path.dirname(abspath)
    250250        return os.path.join(dname, os.path.normpath(path) )
Note: See TracChangeset for help on using the changeset viewer.