clean code
This commit is contained in:
parent
eabb80a3a5
commit
0f2077670d
|
|
@ -2,8 +2,8 @@ from datetime import datetime
|
||||||
|
|
||||||
import servicemanager
|
import servicemanager
|
||||||
import win32event
|
import win32event
|
||||||
|
import win32service
|
||||||
import win32serviceutil
|
import win32serviceutil
|
||||||
|
|
||||||
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(
|
||||||
|
|
@ -152,8 +152,6 @@ class ComacDBService(win32serviceutil.ServiceFramework):
|
||||||
logger.info("Service stopped successfully")
|
logger.info("Service stopped successfully")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
import win32service
|
|
||||||
import win32serviceutil
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
ensure_dir(app_log_dir)
|
ensure_dir(app_log_dir)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue