1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 04:52:50 +00:00

%(here)s should be the directory of the config file

This commit is contained in:
Raoul Snyman 2016-12-05 23:36:20 +02:00
parent 751e771bb1
commit 5ce4f143fa

View File

@ -117,7 +117,7 @@ class Builder(object):
"""
Build some default values for the config file
"""
return {'here': self.script_path}
return {'here': os.path.dirname(self.config_path)}
def get_sphinx_build(self):
"""
@ -167,14 +167,15 @@ class Builder(object):
Read the configuration from the configuration file.
"""
self.config = ConfigParser(defaults=self.get_config_defaults())
self.config.read(os.path.abspath(self.args.config))
self.config.read(self.config_path)
def setup_system_paths(self):
"""
Set up some system paths.
"""
self.script_path = os.path.dirname(os.path.abspath(__file__))
self.python = sys.executable
self.script_path = os.path.dirname(os.path.abspath(__file__))
self.config_path = os.path.abspath(self.args.config)
def setup_executables(self):
"""