Beremiz_service.py
changeset 1955 a1ea9856013a
parent 1953 5736d25bb393
child 1984 081265cda5b1
child 2200 6417f5b59eff
equal deleted inserted replaced
1954:b113d7de4899 1955:a1ea9856013a
   108     elif o == "-c":
   108     elif o == "-c":
   109         wampconf = None if a == "off" else a
   109         wampconf = None if a == "off" else a
   110     elif o == "-s":
   110     elif o == "-s":
   111         wampsecret = None if a == "off" else a
   111         wampsecret = None if a == "off" else a
   112     elif o == "-e":
   112     elif o == "-e":
   113         l = list(os.path.split(os.path.realpath(a)))
   113         fnameanddirname = list(os.path.split(os.path.realpath(a)))
   114         l.reverse()
   114         fnameanddirname.reverse()
   115         extensions.append(l)
   115         extensions.append(fnameanddirname)
   116     else:
   116     else:
   117         usage()
   117         usage()
   118         sys.exit()
   118         sys.exit()
   119 
   119 
   120 
   120 
   553 
   553 
   554 
   554 
   555 def LogException(*exp):
   555 def LogException(*exp):
   556     LogMessageAndException("", exp)
   556     LogMessageAndException("", exp)
   557 
   557 
       
   558 
   558 sys.excepthook = LogException
   559 sys.excepthook = LogException
   559 
   560 
   560 
   561 
   561 def installThreadExcepthook():
   562 def installThreadExcepthook():
   562     init_old = threading.Thread.__init__
   563     init_old = threading.Thread.__init__