joey: thuban/Extensions/wms parser.py,1.5,1.6
cvs@intevation.de
cvs at intevation.de
Tue Apr 13 15:15:25 CEST 2004
Author: joey
Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv32237
Modified Files:
parser.py
Log Message:
Use a variable for denoting the sample filename
Index: parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/parser.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- parser.py 10 Apr 2004 19:12:41 -0000 1.5
+++ parser.py 13 Apr 2004 13:15:22 -0000 1.6
@@ -482,13 +482,14 @@
import os
+ sample = "test/sample.xml"
try:
- f = open("test/sample.xml", "r")
+ f = open(sample, "r")
except IOError:
try:
- f = open(os.path.dirname(__file__) + "/test/sample.xml", "r")
+ f = open(os.path.dirname(__file__) + "/" + sample, "r")
except IOError:
- print "Cannot open sample.xml for reading"
+ print "Cannot open %s for reading" % sample
if f is not None:
sample = f.read();
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)