Initial commit

This commit is contained in:
Kjistóf 2016-12-08 18:15:56 +01:00 committed by Kristóf Tóth
commit fe1c4b27ba
2 changed files with 17 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
*.pyc

15
normalisename.py Normal file
View File

@ -0,0 +1,15 @@
from sys import argv
from os import rename
from unidecode import unidecode
for file in argv[1:]:
rename(file,
unidecode
(
''.join(ch for ch in file
if ch.isalnum()
or ch is ' '
or ch is '.')
)
.replace(' ', '_'))