[Zope3-checkins] CVS: Zope3/src/zope/fssync - main.py:1.20

Fred L. Drake, Jr. fred@zope.com
Mon, 30 Jun 2003 15:03:58 -0400


Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv15984

Modified Files:
	main.py 
Log Message:
When the script is symlinked from some random bin/ directory, resolving
the script's name instead the containing directory is needed to make
sure the script's support code is found.


=== Zope3/src/zope/fssync/main.py 1.19 => 1.20 ===
--- Zope3/src/zope/fssync/main.py:1.19	Wed Jun 11 11:50:55 2003
+++ Zope3/src/zope/fssync/main.py	Mon Jun 30 15:03:58 2003
@@ -40,8 +40,8 @@
 
 # Find the zope root directory.
 # XXX This assumes this script is <root>/src/zope/fssync/main.py
-scriptfile = sys.argv[0]
-scriptdir = realpath(dirname(scriptfile))
+scriptfile = realpath(sys.argv[0])
+scriptdir = dirname(scriptfile)
 rootdir = dirname(dirname(dirname(scriptdir)))
 
 # Hack to fix the module search path