Improved workspace handling in start command

This commit is contained in:
2021-04-08 19:30:00 +02:00
parent 806888bf49
commit 5f668e17c9
11 changed files with 68 additions and 50 deletions

View File

@@ -446,6 +446,8 @@ class Console:
for call in cls._hold_back_calls:
call.function(*call.args)
cls._hold_back_calls = []
time.sleep(0.1)
return return_value

View File

@@ -1,4 +1,4 @@
import pathlib
import os
from datetime import datetime
from socket import gethostname
from typing import Optional
@@ -22,8 +22,8 @@ class ApplicationEnvironment(ApplicationEnvironmentABC):
self._start_time: datetime = datetime.now()
self._end_time: datetime = datetime.now()
self._working_directory = pathlib.Path().absolute()
self._runtime_directory = pathlib.Path(__file__).parent.absolute()
self._working_directory = os.path.abspath('./')
self._runtime_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@property
def environment_name(self) -> str: