Commit ba2208ff authored by Fred Drake's avatar Fred Drake

simplify an example to do the right thing

parent b4fd9727
......@@ -1512,10 +1512,9 @@ import ZConfig
try:
myfile = __file__
except NameError:
# really should follow symlinks here:
myfile = sys.argv[0]
myfile = os.path.realpath(sys.argv[0])
mydir = os.path.dirname(os.path.abspath(myfile))
mydir = os.path.dirname(myfile)
schema = ZConfig.loadSchema(os.path.join(mydir, 'schema.xml'))
conf, handler = ZConfig.loadConfig(schema, sys.argv[1])
......
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