#!/usr/bin/python # -*- coding: GBK -*- # # @todo: # # @author: Alee # @date 2017-12-21 ÏÂÎç04:53:56 # @version 1.0 # # @note: # #--------------------------------------------------------------------- HaveDEBUG = False #³õʼ»¯LogÄ£¿é import logging #import gc from Utils.mylog import InitMyLog if HaveDEBUG: #gc.set_debug(gc.DEBUG_LEAK) InitMyLog("InsideRobot", True, logging.DEBUG) else: #gc.set_debug(gc.DEBUG_LEAK) #gc.disable() InitMyLog("InsideRobot", True, logging.INFO) from framework.frame import StartApp import time import os import traceback VERSION = "1.0.0" BUILD_DATE = "2017-12-21" if __name__ == "__main__": try: logging.info("InsideRobot %s %s" % (VERSION, BUILD_DATE)) PyBaseRoot = os.getcwd() + "\\" logging.debug("Main: %s" % os.getcwd()) StartApp(PyBaseRoot) except Exception, e: print str(e) print traceback.print_exc() logging.error(str(e)) logging.error(traceback.print_exc())