wam: Make our _info.cfg's look identical to the C++ client's
To achieve this, add the same leading comment section ("do no edit this file", etc.) and use the same indentation format as the C++ engine, and don't use quotes around the uploads attribute value (it's an integer).
This commit is contained in:
parent
baa566161b
commit
80172ee58f
1 changed files with 11 additions and 7 deletions
|
@ -134,16 +134,20 @@ if __name__ == "__main__":
|
|||
info = os.path.join(dirname, "_info.cfg")
|
||||
try:
|
||||
f = file(info, "w")
|
||||
infowml = """[info]
|
||||
version="%s"
|
||||
uploads="%s"
|
||||
dependencies="%s"
|
||||
title="%s"
|
||||
type="%s"
|
||||
infowml = """#
|
||||
# File automatically generated by Wesnoth to keep track
|
||||
# of version information on installed add-ons. DO NOT EDIT!
|
||||
#
|
||||
[info]
|
||||
\tdependencies="%s"
|
||||
\ttitle="%s"
|
||||
\ttype="%s"
|
||||
\tuploads=%s
|
||||
\tversion="%s"
|
||||
[/info]
|
||||
"""
|
||||
f.write(infowml %
|
||||
(version, uploads, dependencies, title, type))
|
||||
(dependencies, title, type, uploads, version))
|
||||
f.close()
|
||||
except OSError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue