diff options
Diffstat (limited to 'scripts/lib/fontbuild/Build.py')
-rw-r--r-- | scripts/lib/fontbuild/Build.py | 6 |
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): |