app/utils/title.py

6 lines
102 B
Python

import os
def Title(title: str):
return str(os.path.basename(title)).replace('.py', '').title()