Add possibility to point to a settings file
This commit is contained in:
parent
367b9b5946
commit
ea3d55091b
|
@ -43,6 +43,7 @@ def main():
|
|||
parser.add_option('--gid', dest='gid')
|
||||
parser.add_option('--extra', metavar='DIR', action='append',
|
||||
dest='extra', default=[])
|
||||
parser.add_option('--settings', dest='settings', metavar='FILENAME')
|
||||
options, args = parser.parse_args()
|
||||
|
||||
if not options.vhost:
|
||||
|
@ -52,6 +53,8 @@ def main():
|
|||
|
||||
for directory in options.extra:
|
||||
publisher.WcsPublisher.register_extra_dir(directory)
|
||||
if options.settings:
|
||||
publisher.WcsPublisher.default_configuration_path = options.settings
|
||||
|
||||
pub = publisher.WcsPublisher.create_publisher()
|
||||
pub.app_dir = os.path.join(pub.app_dir, options.vhost)
|
||||
|
|
Reference in New Issue