优化代码。
This commit is contained in:
parent
8457b6b593
commit
8bf395ad22
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ import servicemanager
|
||||||
import win32event
|
import win32event
|
||||||
import win32service
|
import win32service
|
||||||
import win32serviceutil
|
import win32serviceutil
|
||||||
|
import threading
|
||||||
from Common import *
|
from Common import *
|
||||||
|
|
||||||
current_dir = os.path.dirname(sys.executable) if getattr(sys, 'frozen', False) else os.path.dirname(
|
current_dir = os.path.dirname(sys.executable) if getattr(sys, 'frozen', False) else os.path.dirname(
|
||||||
|
|
@ -100,8 +100,6 @@ class ComacDBService(win32serviceutil.ServiceFramework):
|
||||||
|
|
||||||
def monitor_java_process(self):
|
def monitor_java_process(self):
|
||||||
"""在后台线程中监控Java进程"""
|
"""在后台线程中监控Java进程"""
|
||||||
import threading
|
|
||||||
|
|
||||||
def monitor():
|
def monitor():
|
||||||
try:
|
try:
|
||||||
if self.process:
|
if self.process:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue