From baad14e5aadd26b48d293455ada05437f38ce112 Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Tue, 29 Sep 2015 11:34:28 -0700 Subject: [PATCH 1/2] fix add_glyphs to use absolute path when extending sys.path --- third_party/color_emoji/add_glyphs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/color_emoji/add_glyphs.py b/third_party/color_emoji/add_glyphs.py index 1c1d1ce2e..8d714d1e5 100644 --- a/third_party/color_emoji/add_glyphs.py +++ b/third_party/color_emoji/add_glyphs.py @@ -1,11 +1,11 @@ #!/usr/bin/env python -import glob, sys +import glob, os, sys from fontTools import ttx from fontTools.ttLib.tables import otTables from png import PNG -sys.path.append('../../') +sys.path.append(os.path.join(os.path.dirname(__file__), '../../')) import add_emoji_gsub From 3f36ea9b1637647c52dc6b28bb51ea5bb5c91f14 Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Tue, 29 Sep 2015 12:46:17 -0700 Subject: [PATCH 2/2] fix for review --- third_party/color_emoji/add_glyphs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/color_emoji/add_glyphs.py b/third_party/color_emoji/add_glyphs.py index 8d714d1e5..a8d986547 100644 --- a/third_party/color_emoji/add_glyphs.py +++ b/third_party/color_emoji/add_glyphs.py @@ -5,7 +5,8 @@ from fontTools import ttx from fontTools.ttLib.tables import otTables from png import PNG -sys.path.append(os.path.join(os.path.dirname(__file__), '../../')) +sys.path.append( + os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) import add_emoji_gsub