/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/wms/parser.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Extensions/wms/parser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2163 by joey, Sat Apr 10 19:12:41 2004 UTC revision 2164 by joey, Tue Apr 13 13:15:22 2004 UTC
# Line 482  if __name__ == "__main__": Line 482  if __name__ == "__main__":
482    
483      import os      import os
484    
485        sample = "test/sample.xml"
486      try:      try:
487          f = open("test/sample.xml", "r")          f = open(sample, "r")
488      except IOError:      except IOError:
489          try:          try:
490              f = open(os.path.dirname(__file__) + "/test/sample.xml", "r")              f = open(os.path.dirname(__file__) + "/" + sample, "r")
491          except IOError:          except IOError:
492              print "Cannot open sample.xml for reading"              print "Cannot open %s for reading" % sample
493    
494      if f is not None:      if f is not None:
495          sample = f.read();          sample = f.read();

Legend:
Removed from v.2163  
changed lines
  Added in v.2164

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26