Skip to content
Prev Previous commit
Next Next commit
fix build for 3.8
  • Loading branch information
T4rk1n committed Jul 7, 2025
commit e6ed22e8ac0c0828f41d6628bccc9e0370211956
4 changes: 3 additions & 1 deletion dash/development/component_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def generate_components(

is_windows = sys.platform == "win32"

extract_path = os.path.join(str(resources.files("dash")), "extract-meta.js")
# Python 3.8 compatible approach using importlib.resources.path()
with resources.path("dash", "extract-meta.js") as resource_path:
extract_path = str(resource_path)

reserved_patterns = "|".join(f"^{p}$" for p in reserved_words)

Expand Down
Loading