mirror of
https://github.com/sjpiper145/MakerSkillTree.git
synced 2025-10-16 11:52:50 +02:00
Use absolute path of template file
This commit is contained in:
parent
46ab9a98b3
commit
8cebd90e45
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/env python
|
#!/bin/env python
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import os
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -41,7 +42,8 @@ def save_processed_svg(content, output_path):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
svg_template_path = "skill_tree_template.svg.j2"
|
script_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
svg_template_path = os.path.join(script_path, "skill_tree_template.svg.j2")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Process SVG template with YAML data.")
|
parser = argparse.ArgumentParser(description="Process SVG template with YAML data.")
|
||||||
parser.add_argument("input_yaml", help="Path to input YAML file")
|
parser.add_argument("input_yaml", help="Path to input YAML file")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue