From 4bf344406d35101a2cd3cc7d830904ff28692e92 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Fri, 10 Apr 2015 12:52:35 -0700 Subject: Use os.path.join to produce output paths. --- scripts/lib/fontbuild/Build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/lib/fontbuild/Build.py') 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): -- cgit v1.2.3