Skip to content

Instantly share code, notes, and snippets.

View ilanben's full-sized avatar

ilan.b ilanben

View GitHub Profile
@ilanben
ilanben / fontawesome4to5.py
Created June 28, 2018 08:10
Migrate Fontawesome 4 to 5 icons using python 2.7. The script works recursively from the inputDir. If inputDir stays empty, The script works from the current directory
from __future__ import print_function
import os
inputDir = ""
findreplace = [
(u'fa fa-500px', u'fab fa-500px'),
(u'fa fa-address-book-o', u'far fa-address-book'),
(u'fa fa-address-card-o', u'far fa-address-card'),
(u'fa fa-adn', u'fab fa-adn'),