Browse Source

Add a 'home' variable for the config files

merge-requests/16/head
Raoul Snyman 1 year ago
parent
commit
2e9751f690
Signed by: raoul GPG Key ID: F55BCED79626AE9C
  1. 10
      builders/builder.py
  2. 2
      osx/config-appveyor.ini

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

2
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

Loading…
Cancel
Save