diff --git a/builders/builder.py b/builders/builder.py index 6c07166..f3b0b25 100644 --- a/builders/builder.py +++ b/builders/builder.py @@ -23,11 +23,12 @@ Base class for the Windows and macOS builders. """ import os -import sys import runpy -from io import StringIO +import sys from argparse import ArgumentParser from configparser import ConfigParser +from io import StringIO +from pathlib import Path from shutil import copy, rmtree from subprocess import Popen, PIPE @@ -166,7 +167,10 @@ class Builder(object): """ Build some default values for the config file """ - return {'here': os.path.dirname(self.config_path)} + return { + 'here': os.path.dirname(self.config_path), + 'home': str(Path.home()) + } def get_sphinx_build(self): """ diff --git a/osx/config-appveyor.ini b/osx/config-appveyor.ini index 52783b9..060cc20 100644 --- a/osx/config-appveyor.ini +++ b/osx/config-appveyor.ini @@ -1,5 +1,5 @@ [executables] -lrelease = $HOME/Qt/5.15/clang_64/bin/lrelease +lrelease = %(home)s/Qt/5.15/clang_64/bin/lrelease [paths] branch = path/to/openlp/trunk