#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#  
 | 
# @todo:   
 | 
#  
 | 
# @author: Alee  
 | 
# @date 2017-12-21 ÏÂÎç04:53:56  
 | 
# @version 1.0  
 | 
#  
 | 
# @note:   
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
HaveDEBUG = True  
 | 
  
 | 
  
 | 
#³õʼ»¯LogÄ£¿é  
 | 
import logging  
 | 
#import gc  
 | 
from Utils.mylog import InitMyLog  
 | 
import time  
 | 
import os  
 | 
import traceback  
 | 
import sys  
 | 
  
 | 
  
 | 
logname = ""  
 | 
if len(sys.argv) == 2:  
 | 
    logname = sys.argv[1]  
 | 
if HaveDEBUG:  
 | 
    #gc.set_debug(gc.DEBUG_LEAK)  
 | 
    InitMyLog("RobotTest%s"%logname, True, logging.DEBUG)  
 | 
else:  
 | 
    #gc.set_debug(gc.DEBUG_LEAK)  
 | 
    #gc.disable()  
 | 
    InitMyLog("RobotTest%s"%logname, True, logging.INFO)  
 | 
  
 | 
  
 | 
from framework.frame import StartApp  
 | 
  
 | 
  
 | 
  
 | 
  
 | 
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())  
 | 
  
 | 
  
 |