We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1420d51 commit b99ba8eCopy full SHA for b99ba8e
.github/workflows/css_check.py
@@ -74,7 +74,8 @@ def check_files(
74
css_imports = re.findall(r'import\s+.*?["\'](.+?\.css)["\']', content)
75
for css_file in css_imports:
76
# Try to find the CSS file
77
- css_file_path = os.path.join(os.path.dirname(file_path), css_file)
+ base_path = os.path.dirname(file_path)
78
+ css_file_path = os.path.normpath(os.path.join(base_path, css_file))
79
if not os.path.exists(css_file_path):
80
# If not found, try to find it relative to the src directory
81
src_dir = os.path.abspath(directory)
0 commit comments