Permalink
Browse files

remove dots in mbtiles file names (tilestream won't recognize them ot…

…herwise)
  • Loading branch information...
1 parent dfd9c5a commit 9fa54ec4c66464f733e31558c8865d120621e062 @jpetazzo committed Oct 28, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 postinstall
View
3 postinstall
@@ -9,6 +9,9 @@ env = json.load(open(os.path.expanduser('~/environment.json')))
mbtiles = env.get('mbtiles',[])
for mbtile in mbtiles:
filename = os.path.basename(mbtile)
+ if filename.endswith('.mbtiles'):
+ filename = filename[:-len('.mbtiles')]
+ filename = filename.replace('.','_') + '.mbtiles'
if os.path.isfile(os.path.join(DIR, filename)):
print '{0} already exists, skipping download.'.format(filename)
continue

0 comments on commit 9fa54ec

Please sign in to comment.