Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aranas committed Sep 11, 2023
1 parent a57c69f commit cbec134
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions slides/generate_slides.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@
from jinja2 import Environment, FileSystemLoader

# Set up Jinja2 environment and load the templates
env = Environment(loader=FileSystemLoader('.'))
script_dir = os.path.dirname(os.path.abspath(__file__))
env = Environment(loader=FileSystemLoader(script_dir))
slide_project = env.get_template('slide_templates/template_project_horizontal.md')
slide_bullets = env.get_template('slide_templates/template_bullets_vertical.md')
slide_bullets2 = env.get_template('slide_templates/template_iframe_background.md')
slide_image = env.get_template('slide_templates/template_image.md')
slide_url = env.get_template('slide_templates/template_url_vertical.md')

# Read the title slide from title_template.md
with open('slide_templates/template_title.md', 'r') as title_file:
with open(os.path.join(script_dir, 'slide_templates/template_title.md'), 'r') as title_file:
markdown = title_file.read()

# Read data from CSV to pandas
df = pd.read_csv('output_ram.csv')
df = pd.read_csv(os.path.join(script_dir,'output_ram.csv'))
#group by project
df = df.groupby('Project')

Expand Down

0 comments on commit cbec134

Please sign in to comment.