Skip to content

Commit

Permalink
Fixed dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikranth3140 committed Jun 8, 2024
1 parent 2e0002e commit 0389a67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generate_svg.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import svgwrite
import os

def generate_svg(total_contributions, current_streak, longest_streak):
# Ensure the output directory exists
if not os.path.exists('output'):
os.makedirs('output')

dwg = svgwrite.Drawing('output/contributions.svg', profile='full', size=('500px', '200px'))
dwg.add(dwg.rect(insert=(0, 0), size=('500px', '200px'), fill='#1e1e2e'))

Expand Down
2 changes: 2 additions & 0 deletions output/contributions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0389a67

Please sign in to comment.