Skip to content

Commit

Permalink
Clean up Makefile and build-v2.py path references.
Browse files Browse the repository at this point in the history
  • Loading branch information
roozbehp committed Apr 18, 2015
1 parent 8e88271 commit de647e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions scripts/build-v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,6 +25,10 @@
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)
Expand Down

0 comments on commit de647e3

Please sign in to comment.