check.py : Fix python2 platform sorting.
This commit is contained in:
parent
3aeef9caff
commit
0e60d8a11c
1 changed files with 7 additions and 6 deletions
13
check.py
13
check.py
|
@ -6,6 +6,7 @@ import sys
|
||||||
# exit(1)
|
# exit(1)
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
|
from collections import OrderedDict
|
||||||
import string
|
import string
|
||||||
import collections
|
import collections
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -16,12 +17,12 @@ import re
|
||||||
FILE_HEADER = "# Game Controller DB for SDL in 2.0.6 format\n" \
|
FILE_HEADER = "# Game Controller DB for SDL in 2.0.6 format\n" \
|
||||||
"# Source: https://github.com/gabomdq/SDL_GameControllerDB\n"
|
"# Source: https://github.com/gabomdq/SDL_GameControllerDB\n"
|
||||||
|
|
||||||
mappings_dict = {
|
mappings_dict = OrderedDict([
|
||||||
"Windows": {},
|
("Windows", {}),
|
||||||
"Mac OS X": {},
|
("Mac OS X", {}),
|
||||||
"Linux": {},
|
("Linux", {}),
|
||||||
"Android": {},
|
("Android", {}),
|
||||||
}
|
])
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("input_file", help="database file to check, " \
|
parser.add_argument("input_file", help="database file to check, " \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue