diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-04-17 17:26:10 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2015-04-17 17:26:10 -0700 |
commit | b6dd3c12ecf5db071af8b94ef701a52cb91e88a8 (patch) | |
tree | 807aa4f2f61c214ec070b614a8a265b49a909447 | |
parent | aa64beca82fb32b3b3e32d1a8a8640330df83876 (diff) |
Clean up Makefile and build-v2.py path references.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | scripts/build-v2.py | 7 |
2 files changed, 6 insertions, 5 deletions
@@ -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) |