mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 21:12:50 +00:00
%(here)s should be the directory of the config file
This commit is contained in:
parent
751e771bb1
commit
5ce4f143fa
@ -117,7 +117,7 @@ class Builder(object):
|
|||||||
"""
|
"""
|
||||||
Build some default values for the config file
|
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):
|
def get_sphinx_build(self):
|
||||||
"""
|
"""
|
||||||
@ -167,14 +167,15 @@ class Builder(object):
|
|||||||
Read the configuration from the configuration file.
|
Read the configuration from the configuration file.
|
||||||
"""
|
"""
|
||||||
self.config = ConfigParser(defaults=self.get_config_defaults())
|
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):
|
def setup_system_paths(self):
|
||||||
"""
|
"""
|
||||||
Set up some system paths.
|
Set up some system paths.
|
||||||
"""
|
"""
|
||||||
self.script_path = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
self.python = sys.executable
|
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):
|
def setup_executables(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user