From c5c942293ad2fe834d03c0d609502d7c9c667c41 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 31 Oct 2016 11:55:15 -0700 Subject: [PATCH] [./fonttools] Add ./Lib to python path See https://github.com/fonttools/fonttools/commit/f5bf9b04de26cf5f439c743df47c89e53457b031#commitcomment-19636642 --- fonttools | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fonttools b/fonttools index fbacb8b19..0707d684a 100755 --- a/fonttools +++ b/fonttools @@ -1,6 +1,13 @@ #!/usr/bin/env python from __future__ import print_function, division, absolute_import +import sys +import os.path + +libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Lib')) +sys.path.insert(0, libdir) + from fontTools.__main__ import main if __name__ == '__main__': + main()