dabo Commit
Revision 3624
Date: 2007-11-06 12:56:45 -0800 (Tue, 06 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3624

Changed:
U   trunk/dabo/dApp.py

Log:
I believe this will fix my particular problem (Dabo wanting to update itself
from within a py2exe-frozen application).



Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2007-11-03 00:09:01 UTC (rev 3623)
+++ trunk/dabo/dApp.py  2007-11-06 20:56:45 UTC (rev 3624)
@@ -386,11 +386,22 @@
                
                
        def _checkForUpdates(self, force=False):
-               # If they are running Subversion, don't update.
-               usesSubversion = 
os.path.isdir(os.path.join(os.path.split(dabo.__file__)[0], ".svn"))
-               if usesSubversion and not force:
-                       self._setWebUpdate(False)
-                       return (False, False)
+               if not force:
+                       # Check for cases where we absolutely will not Web 
Update.
+                       update = True
+
+                       # If they are running Subversion, don't update.
+                       if 
os.path.isdir(os.path.join(os.path.split(dabo.__file__)[0], ".svn")):
+                               update = False
+
+                       # Frozen App:
+                       if sys.hasattr("frozen"):
+                               update = False
+
+                       if not update:
+                               self._setWebUpdate(False)
+                               return (False, False)
+
                prf = self._frameworkPrefs
                retAvailable = False
                retFirstTime = not prf.hasKey("web_update")




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to