[Zope-CVS] CVS: Products/ExternalEditor - LICENSE.txt:1.2 zopeedit.py:1.24

Casey Duncan casey@zope.com
Thu, 20 Jun 2002 01:41:12 -0400


Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv3924

Modified Files:
	LICENSE.txt zopeedit.py 
Log Message:
Fixed windows config file pathing


=== Products/ExternalEditor/LICENSE.txt 1.1.1.1 => 1.2 ===
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
   DAMAGE.
-
-
-This software consists of contributions made by Zope
-Corporation and many individuals on behalf of Zope
-Corporation.  Specific attributions are listed in the
-accompanying credits file.


=== Products/ExternalEditor/zopeedit.py 1.23 => 1.24 ===
             # Read the configuration file
             if win32:
+                # Check the home dir first and then the program dir
                 config_path = path.expanduser('~\\ZopeEdit.ini')
+                global_config = path.join(sys.path[0], 'ZopeEdit.ini')
+                if not path.exists(config_path) \
+                   and os.path.exists(global_config):
+                    config_path = global_config
             else:
                 config_path = path.expanduser('~/.zope-external-edit')