./fonttools: Use realpath() instead of abspath()

Makes a symlink to this script do the right thing.
This commit is contained in:
Behdad Esfahbod 2017-04-19 15:28:55 -07:00
parent a5c8977dd3
commit 25e9d826ba

View File

@ -3,7 +3,7 @@ from __future__ import print_function, division, absolute_import
import sys import sys
import os.path import os.path
libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Lib')) libdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'Lib')
sys.path.insert(0, libdir) sys.path.insert(0, libdir)
from fontTools.__main__ import main from fontTools.__main__ import main