예제 #1
0
파일: update.py 프로젝트: ciex/souma
def update_souma():
    """Check for updates and install if available"""
    esk = Esky(sys.executable, app.config["UPDATE_URL"])
    try:
        esk.auto_update()

    # Exception kinds are badly documented for the Esky auto_update method,
    # that's why I'm using a catch-all except here.
    # Esky advises for writing custom auto_update routines anyway, which is
    # probably a good idea before we start public beta testing. Btw..
    # TODO: Custum update routine
    except Exception, e:
        app.logger.error("Error updating Souma: {}".format(e))
예제 #2
0
import sys
import esky
from mmpe.build_exe.cx.autoupdate.myesky import MyEsky
import os
from esky import Esky
from mmpe.build_exe.cx.autoupdate import myesky
version = (1, 1, 35)
if __name__ == "__main__":
    print (str(version))
    print (hasattr(sys, "frozen"))
    if 1 or hasattr(sys, "frozen"):

        app = Esky(sys.executable, r"http://tools.windenergy.dtu.dk/pdap/downloads/versions.txt")
        app.auto_update(myesky.callback)