Skip to content

Commit b99ba8e

Browse files
authored
Update css_check.py coderabbit suggestions
1 parent 1420d51 commit b99ba8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/css_check.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def check_files(
7474
css_imports = re.findall(r'import\s+.*?["\'](.+?\.css)["\']', content)
7575
for css_file in css_imports:
7676
# Try to find the CSS file
77-
css_file_path = os.path.join(os.path.dirname(file_path), css_file)
77+
base_path = os.path.dirname(file_path)
78+
css_file_path = os.path.normpath(os.path.join(base_path, css_file))
7879
if not os.path.exists(css_file_path):
7980
# If not found, try to find it relative to the src directory
8081
src_dir = os.path.abspath(directory)

0 commit comments

Comments
 (0)