Add basic yaml metadata writing

This commit is contained in:
Daniel Martí 2015-10-04 00:03:02 -07:00
parent 082e275aa1
commit 1aa891c4fd
3 changed files with 160 additions and 96 deletions

View file

@ -369,10 +369,10 @@ def read_app_args(args, allapps, allow_vercodes=False):
def get_extension(filename):
_, ext = os.path.splitext(filename)
base, ext = os.path.splitext(filename)
if not ext:
return ''
return ext.lower()[1:]
return base, ''
return base, ext.lower()[1:]
def has_extension(filename, ext):