From 2e9751f690ea9bf79bac02badd12ef5bbebdc3e2 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 16 Sep 2021 15:37:33 -0700 Subject: [PATCH] Add a 'home' variable for the config files --- builders/builder.py | 10 +++++++--- osx/config-appveyor.ini | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) 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