Add a 'home' variable for the config files

merge-requests/16/head
Raoul Snyman 2021-09-16 15:37:33 -07:00
parent 09e63c0a04
commit 2e9751f690
Signed by: raoul
GPG Key ID: F55BCED79626AE9C
2 changed files with 8 additions and 4 deletions

View File

@ -23,11 +23,12 @@
Base class for the Windows and macOS builders. Base class for the Windows and macOS builders.
""" """
import os import os
import sys
import runpy import runpy
from io import StringIO import sys
from argparse import ArgumentParser from argparse import ArgumentParser
from configparser import ConfigParser from configparser import ConfigParser
from io import StringIO
from pathlib import Path
from shutil import copy, rmtree from shutil import copy, rmtree
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
@ -166,7 +167,10 @@ class Builder(object):
""" """
Build some default values for the config file 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): def get_sphinx_build(self):
""" """

View File

@ -1,5 +1,5 @@
[executables] [executables]
lrelease = $HOME/Qt/5.15/clang_64/bin/lrelease lrelease = %(home)s/Qt/5.15/clang_64/bin/lrelease
[paths] [paths]
branch = path/to/openlp/trunk branch = path/to/openlp/trunk