This commit is contained in:
2020-11-26 17:14:18 +01:00
parent 1c753aaaea
commit 1e0d7d60a5
3 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
import sys
from datetime import datetime
from sh_edraft.hosting.hosting_environment import HostingEnvironment
@@ -9,12 +10,12 @@ from sh_edraft.service.service_provider import ServiceProvider
class ApplicationHost(ApplicationHostBase):
def __init__(self, name: str, args: list[str]):
def __init__(self, name: str):
ApplicationHostBase.__init__(self)
self._name: str = name
self._environment = HostingEnvironment()
self._args: list[str] = args
self._args: list[str] = sys.argv
self._services = ServiceProvider(self)
self._start_time: datetime = datetime.now()
self._end_time: datetime = datetime.now()