Skip to content

Commit

Permalink
patch dir separator on Windows (OpenEVSE#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Oct 22, 2023
1 parent 1f16a6b commit 2e83cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/extra_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def make_static(env, target, source):
for out_file in out_files:
filetype = None
compress = out_file.endswith(".gz")
out_file = out_file.replace("\\","/") # Windows: out_file generated with \ as directory separator
if out_file.endswith(".css") or out_file.endswith(".css.gz"):
filetype = "CSS"
elif out_file.endswith(".js") or out_file.endswith(".js.gz"):
Expand Down

0 comments on commit 2e83cdf

Please sign in to comment.