From b6dd3c12ecf5db071af8b94ef701a52cb91e88a8 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Fri, 17 Apr 2015 17:26:10 -0700 Subject: Clean up Makefile and build-v2.py path references. --- Makefile | 4 +--- scripts/build-v2.py | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fad70c6..070467b 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,7 @@ all: v2 v2: - echo "BASEDIR=\"$(CURDIR)\"" > /tmp/makefontsB.py - cat "scripts/build-v2.py" >> /tmp/makefontsB.py - python /tmp/makefontsB.py + PYTHONPATH=$(PYTHONPATH):$(CURDIR)/scripts/lib python scripts/build-v2.py crunch: mkdir -p out/crunched diff --git a/scripts/build-v2.py b/scripts/build-v2.py index 15679e8..a861a76 100644 --- a/scripts/build-v2.py +++ b/scripts/build-v2.py @@ -13,10 +13,9 @@ # limitations under the License. +import os import sys -sys.path.insert(0, "%s/scripts/lib" % BASEDIR) - from fontTools.misc.transform import Transform from robofab.objects.objectsRF import RPoint @@ -26,6 +25,10 @@ from fontbuild.italics import transformFLGlyphMembers from fontbuild.mix import Master from fontbuild.mix import Mix +# The root of the Roboto tree +BASEDIR = os.path.abspath( + os.path.join(os.path.dirname(__file__), os.pardir)) + # Masters rg = Master("%s/src/v2/Roboto_Regular.ufo" % BASEDIR) -- cgit v1.2.3