From 2be0033e5fb0b3e20582360560209d9ac74c801c Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Thu, 3 Mar 2016 19:56:04 +0300 Subject: [PATCH] Take into account classificator id in mapcss-mapping --- src/libkomwm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libkomwm.py b/src/libkomwm.py index 26f5959..420fd37 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -80,7 +80,12 @@ def komap_mapswithme(options): # Build classificator tree from mapcss-mapping.csv file types_file = open(os.path.join(ddir, 'types.txt'), "w") + cnt = 1 for row in csv.reader(open(os.path.join(ddir, 'mapcss-mapping.csv')), delimiter=';'): + while int(row[5]) > cnt: + print >> types_file, "mapswithme" + cnt += 1 + cnt += 1 cl = row[0].replace("|", "-") pairs = [i.strip(']').split("=") for i in row[1].split(',')[0].split('[')] kv = {}