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

@@ -15,11 +15,11 @@ __title__ = 'cpl_cli.live_server'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2022 sh-edraft.de'
__version__ = '2022.6.0rc1'
__version__ = '2022.6.1.dev2'
from collections import namedtuple
# imports:
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2022', minor='6', micro='0.rc1')
version_info = VersionInfo(major='2022', minor='6', micro='1.dev2')

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)