|
@@ -28,7 +28,7 @@ oname = None
|
|
|
firstline = ifile.readline().replace(u'\ufeff','')
|
|
|
match = re.search(ur'^#\s(\$?[_.\w]+)$', firstline)
|
|
|
if match:
|
|
|
- oname = os.path.join(odir, match.group(1).replace("$","_") )
|
|
|
+ oname = os.path.join(odir, match.group(1).replace("$","_") + '.qsrc' )
|
|
|
counter += 1
|
|
|
assert oname, "file is in the wrong format, must start with a location name"
|
|
|
|
|
@@ -39,7 +39,7 @@ for line in ifile:
|
|
|
match = re.search(ur'^#\s(\$?[_.\w]+)$', line)
|
|
|
if match:
|
|
|
ofile.close()
|
|
|
- oname = os.path.join(odir, match.group(1).replace("$","_") )
|
|
|
+ oname = os.path.join(odir, match.group(1).replace("$","_") + '.qsrc' )
|
|
|
counter += 1
|
|
|
ofile = io.open(oname, 'w', encoding='utf-8')
|
|
|
ofile.write(line)
|