Merge branch 'fix-path-to-lrelease' into 'master'

Add a 'home' variable for the config files

See merge request openlp/packaging!16
This commit is contained in:
Tomas Groth 2021-11-07 09:43:29 +00:00
commit f3450e30f2
2 changed files with 8 additions and 4 deletions

View File

@ -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):
"""

View File

@ -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