[Zope3-checkins] CVS: StandaloneZConfig/ZConfig/doc - zconfig.tex:1.103

Fred L. Drake, Jr. fred at zope.com
Thu Apr 15 02:48:57 EDT 2004


Update of /cvs-repository/StandaloneZConfig/ZConfig/doc
In directory cvs.zope.org:/tmp/cvs-serv28247

Modified Files:
	zconfig.tex 
Log Message:
simplify an example to do the right thing


=== StandaloneZConfig/ZConfig/doc/zconfig.tex 1.102 => 1.103 ===
--- StandaloneZConfig/ZConfig/doc/zconfig.tex:1.102	Thu Apr 15 02:29:17 2004
+++ StandaloneZConfig/ZConfig/doc/zconfig.tex	Thu Apr 15 02:48:56 2004
@@ -1512,10 +1512,9 @@
 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])




More information about the Zope3-Checkins mailing list