summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-10 12:52:35 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:34 -0700
commit4bf344406d35101a2cd3cc7d830904ff28692e92 (patch)
tree53e902797d83bbb4902e9f1c7d4b2bd45ce974ff /scripts/lib
parent29cef4ba24e26302df158f89108b9c9962948cee (diff)
Use os.path.join to produce output paths.
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/fontbuild/Build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index b7b3263..00153e9 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -71,14 +71,14 @@ class FontProject:
versionFile.close()
else:
raise Exception("Empty build number")
-
+
def generateOutputPath(self, font, ext):
family = font.info.familyName.replace(" ", "")
style = font.info.styleName.replace(" ", "")
- path = "%s/%s/%s%s" % (self.basedir, self.builddir, family, ext.upper())
+ path = os.path.join(self.basedir, self.builddir, family + ext.upper())
if not os.path.exists(path):
os.makedirs(path)
- return "%s/%s-%s.%s" % (path, family, style, ext.lower())
+ return os.path.join(path, "%s-%s.%s" % (family, style, ext))
def generateFont(self, mix, names, italic=False, swapSuffixes=None, stemWidth=185, kern=True):