Changeset 8e516fd for tests/pybin


Ignore:
Timestamp:
Aug 11, 2020, 5:30:54 PM (15 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
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.