Skip to content

Commit

Permalink
Merge branch 'hyde-gallery' into hyde-gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 authored Nov 19, 2024
2 parents 7168aa7 + 51a0a02 commit d3336d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file modified README.md
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions generate_readme.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/env python3
""""This is a script to generate a Markdown table for the README.md file"""
import os
import json

# Load JSON data from file
Expand Down Expand Up @@ -79,7 +80,8 @@ def hex_to_intensity(hex_color):
+ MD_TABLE
)

import os
if not os.path.exists("README.md"):
os.chmod("README.md", 0o666)

# Check if the script has write permissions for README.md
if os.access("README.md", os.W_OK):
Expand All @@ -89,5 +91,3 @@ def hex_to_intensity(hex_color):
print("README.md has been updated with the generated Markdown table.")
else:
print("Permission denied: 'README.md'. Please check the file permissions.")

print("README.md has been updated with the generated Markdown table.")

0 comments on commit d3336d3

Please sign in to comment.