Commit 97144a7c authored by sumpfralle's avatar sumpfralle

r686@erker: lars | 2010-02-18 23:06:37 +0100

 processing setting templates can be sorted arbitrarily now


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@144 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 24b77c58
...@@ -139,7 +139,7 @@ tool_radius: 0.1 ...@@ -139,7 +139,7 @@ tool_radius: 0.1
try: try:
self.config.read([filename]) self.config.read([filename])
except ConfigParser.ParsingError, err_msg: except ConfigParser.ParsingError, err_msg:
print sys.stderr, "Failed to parse config file '%s': %s" % (filename, err_msg) print >> sys.stderr, "Failed to parse config file '%s': %s" % (filename, err_msg)
return False return False
return True return True
...@@ -148,7 +148,7 @@ tool_radius: 0.1 ...@@ -148,7 +148,7 @@ tool_radius: 0.1
try: try:
self.reset(input_text) self.reset(input_text)
except ConfigParser.ParsingError, err_msg: except ConfigParser.ParsingError, err_msg:
print sys.stderr, "Failed to parse config data: %s" % str(err_msg) print >> sys.stderr, "Failed to parse config data: %s" % str(err_msg)
return False return False
return True return True
...@@ -158,7 +158,7 @@ tool_radius: 0.1 ...@@ -158,7 +158,7 @@ tool_radius: 0.1
self.config.write(fi) self.config.write(fi)
fi.close() fi.close()
except IOError, err_msg: except IOError, err_msg:
print sys.stderr, "Failed to write configuration to file (%s): %s" % (filename, err_msg) print >> sys.stderr, "Failed to write configuration to file (%s): %s" % (filename, err_msg)
return False return False
return True return True
...@@ -173,7 +173,7 @@ tool_radius: 0.1 ...@@ -173,7 +173,7 @@ tool_radius: 0.1
except ConfigParser.NoOptionError: except ConfigParser.NoOptionError:
value = None value = None
except ValueError, err_msg: except ValueError, err_msg:
print sys.stderr, "Invalid config value for '%s = %s': %s" % (key, self.config.get(section, key), err_msg) print >> sys.stderr, "Invalid config value for '%s = %s': %s" % (key, self.config.get(section, key), err_msg)
value = None value = None
if not value is None: if not value is None:
self.settings.set(key, value) self.settings.set(key, value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment