1. Logilab
  2. Untitled project
  3. hgview

Commits

Paul Tonelli  committed 79c3cb5

dirty patch to allow execution in py2exe executable (closes #122101)

  • Participants
  • Parent commits 5ccc01d
  • Branches stable

Comments (0)

Files changed (1)

File hgviewlib/qt4/__init__.py

View file
  • Ignore whitespace
 import datetime as dt
 
 def should_rebuild(srcfile, pyfile):
+    if getattr(sys, "frozen", False): # Py2exe specific: module embedded in
+        return False                  # the executable and have no file
     return not osp.isfile(pyfile) or osp.isfile(srcfile) and \
                osp.getmtime(pyfile) < osp.getmtime(srcfile)