From 04ca9d02abf8417f3955b14aa1a51c4c84dd3b3e Mon Sep 17 00:00:00 2001 From: mko Date: Tue, 17 Mar 2015 03:02:08 +0100 Subject: [PATCH] Do not prefix paths with dot Extra dot in front of paths like 'path' and 'fallbackPath' are not necessary and may cause unexpected errors. --- utils/multires/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/multires/generate.py b/utils/multires/generate.py index a7d21da..3c2af1e 100755 --- a/utils/multires/generate.py +++ b/utils/multires/generate.py @@ -136,8 +136,8 @@ text.append('{') text.append(' "type": "multires",') text.append(' ') text.append(' "multiRes": {') -text.append(' "path": "./%l/%s%y_%x",') -text.append(' "fallbackPath": "./fallback/%s",') +text.append(' "path": "/%l/%s%y_%x",') +text.append(' "fallbackPath": "/fallback/%s",') text.append(' "extension": "' + extension[1:] + '",') text.append(' "tileResolution": ' + str(args.tileSize) + ',') text.append(' "maxLevel": ' + str(levels) + ',')