aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/fonts/generate.py
diff options
context:
space:
mode:
authorYehoshua Pesach Wallach <yehoshuapw@gmail.com>2022-04-20 21:38:42 +0300
committerJF <JF002@users.noreply.github.com>2022-05-10 22:20:02 +0200
commitef17f2f9818162bfeae09b979193b1b9f03204d0 (patch)
treed667b99fa89f454d7c92de32354abda0ea17c71f /src/displayapp/fonts/generate.py
parente39f183efeaa81d4122758e28050194327514ae6 (diff)
fontgen: generate font .c files in build dir
Diffstat (limited to 'src/displayapp/fonts/generate.py')
-rwxr-xr-xsrc/displayapp/fonts/generate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/displayapp/fonts/generate.py b/src/displayapp/fonts/generate.py
index d1756a79..d7785951 100755
--- a/src/displayapp/fonts/generate.py
+++ b/src/displayapp/fonts/generate.py
@@ -11,6 +11,8 @@ import subprocess
class Source(object):
def __init__(self, d):
self.file = d['file']
+ if not os.path.exists(self.file):
+ self.file = os.path.join(os.path.dirname(sys.argv[0]), self.file)
self.range = d.get('range')
self.symbols = d.get('symbols')