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

Fred L. Drake, Jr. fred at zope.com
Tue Aug 12 14:51:15 EDT 2003


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

Modified Files:
	main.py 
Log Message:
remove unnecessary sys.path-hackery; that's delegated to bin/zsync


=== Zope3/src/zope/fssync/main.py 1.31 => 1.32 ===
--- Zope3/src/zope/fssync/main.py:1.31	Tue Aug 12 13:09:01 2003
+++ Zope3/src/zope/fssync/main.py	Tue Aug 12 13:51:09 2003
@@ -37,24 +37,6 @@
 
 import os
 import sys
-import getopt
-
-from os.path import dirname, join, realpath
-
-# Find the zope root directory.
-# XXX This assumes this script is <root>/src/zope/fssync/main.py
-scriptfile = realpath(sys.argv[0])
-scriptdir = dirname(scriptfile)
-rootdir = dirname(dirname(dirname(scriptdir)))
-
-# Hack to fix the module search path
-try:
-    import zope.fssync
-    # All is well
-except ImportError:
-    # Fix the path to include <root>/src
-    srcdir = join(rootdir, "src")
-    sys.path.append(srcdir)
 
 from zope.fssync.command import Command, Usage
 from zope.fssync.fsutil import Error




More information about the Zope3-Checkins mailing list