Skip to content

Commit

Permalink
Fixed file_path error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacJW committed Nov 14, 2020
1 parent 6051f44 commit f442fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inline-css.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
for file_path_str in FILES_LIST:
file_path_list = REPO_PATH.glob(file_path_str)
for file_path in file_path_list:
with open(file_path_list, 'r') as file:
with open(file_path, 'r') as file:
html = pm.transform(file.read())
with open(file_path_list, 'w') as file:
with open(file_path, 'w') as file:
file.write(html)

0 comments on commit f442fd9

Please sign in to comment.