diff flys-backend/contrib/shpimporter/utils.py @ 3654:59ca5dab2782

Shape importer: use python's OptionParse to read user specific configuration from command line. flys-backend/trunk@5231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 22 Aug 2012 11:55:55 +0000
parents 5a654f2e35bc
children b1d7e600b43b
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/utils.py	Thu Aug 09 11:17:44 2012 +0000
+++ b/flys-backend/contrib/shpimporter/utils.py	Wed Aug 22 11:55:55 2012 +0000
@@ -1,4 +1,5 @@
 import os
+from shpimporter import DEBUG, INFO, ERROR
 
 SHP='.shp'
 
@@ -9,7 +10,7 @@
         if len(files) == 0:
             continue
 
-        print "Processing directory '%s' with %i files " % (root, len(files))
+        DEBUG("Processing directory '%s' with %i files " % (root, len(files)))
 
         for f in files:
             idx = f.find(SHP)

http://dive4elements.wald.intevation.org