You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ja...@apache.org on 2023/01/12 16:29:54 UTC
[solr-site] branch main updated: Fix passing a custom output path to the vex plugin
This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git
The following commit(s) were added to refs/heads/main by this push:
new d42670758 Fix passing a custom output path to the vex plugin
new 4daeb8fb2 Merge pull request #87 from raboof/fix-vex-custom-output-path
d42670758 is described below
commit d4267075871c3eef85f6e60dc0c181385a774c88
Author: Arnout Engelen <ar...@bzzt.net>
AuthorDate: Thu Jan 12 17:24:07 2023 +0100
Fix passing a custom output path to the vex plugin
---
plugins/vex/vex.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plugins/vex/vex.py b/plugins/vex/vex.py
index 62a8097c3..e80855f91 100644
--- a/plugins/vex/vex.py
+++ b/plugins/vex/vex.py
@@ -56,8 +56,9 @@ def pelican_init(pelicanobj):
with open('plugins/vex/schema/bom-1.4.schema.json', 'r') as schema:
validate(vex, json.load(schema))
- os.makedirs('output', exist_ok=True)
- with open('output/solr.vex.json', 'w') as out:
+ output_path = pelicanobj.settings['OUTPUT_PATH']
+ os.makedirs(output_path, exist_ok=True)
+ with open('%s/solr.vex.json' % output_path, 'w') as out:
json.dump(vex, out, indent=2)
def generator_initialized(generator):