[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - config.py:1.4

Fred L. Drake, Jr. fred at zope.com
Tue Mar 16 11:00:01 EST 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv5731/zpkgtools

Modified Files:
	config.py 
Log Message:
add command line option to suppress reading of the default configuration file


=== Packages/zpkgtools/zpkgtools/config.py 1.3 => 1.4 ===
--- Packages/zpkgtools/zpkgtools/config.py:1.3	Fri Mar 12 14:19:41 2004
+++ Packages/zpkgtools/zpkgtools/config.py	Tue Mar 16 10:59:59 2004
@@ -39,15 +39,9 @@
 class Configuration:
     """Configuration settings for zpkg."""
 
-    def __init__(self, path=None):
+    def __init__(self):
         self.location_maps = []
         self.locations = None
-        if path is None:
-            path = defaultConfigurationPath()
-            if os.path.exists(path):
-                self.loadPath(path)
-        else:
-            self.loadPath(path)
 
     def finalize(self):
         for loc in self.location_maps:




More information about the Zope-CVS mailing list