Bugfixes for start service

This commit is contained in:
2022-05-24 20:12:59 +02:00
parent f317035342
commit a590cfd066
46 changed files with 116 additions and 94 deletions

View File

@@ -60,7 +60,6 @@ class LiveServerThread(threading.Thread):
Starts the CPL project
:return:
"""
Console.write_line(self._build_settings.main)
main = self._build_settings.main
if '.' in self._build_settings.main:
length = len(self._build_settings.main.split('.')) - 1
@@ -89,7 +88,10 @@ class LiveServerThread(threading.Thread):
Console.set_foreground_color(ForegroundColorEnum.default)
self._command = [self._executable, self._main]
if len(self._args) > 0:
self._command.append(''.join(self._args))
# if len(self._args) > 0:
# self._command.append(' '.join(self._args))
for arg in self._args:
self._command.append(arg)
Console.write_line(self._command)
subprocess.run(self._command, env=self._env_vars)