Bugfix for live server windows support
This commit is contained in:
parent
33cb35e26f
commit
df87d08be3
@ -51,6 +51,10 @@ class LiveServerThread(threading.Thread):
|
||||
Console.set_foreground_color(ForegroundColorEnum.default)
|
||||
|
||||
env_vars = os.environ
|
||||
if sys.platform == 'win32':
|
||||
env_vars['PYTHONPATH'] = f'{os.path.dirname(self._path)};' \
|
||||
f'{os.path.join(os.path.dirname(self._path), self._build_settings.source_path)}'
|
||||
else:
|
||||
env_vars['PYTHONPATH'] = f'{os.path.dirname(self._path)}:' \
|
||||
f'{os.path.join(os.path.dirname(self._path), self._build_settings.source_path)}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user