2021.4 #19
@ -1,9 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
from collections import Callable
|
from collections import Callable
|
||||||
from typing import Union, Optional
|
from typing import Union, Optional
|
||||||
|
|
||||||
|
import colorama
|
||||||
import pyfiglet
|
import pyfiglet
|
||||||
from pynput import keyboard
|
from pynput import keyboard
|
||||||
from pynput.keyboard import Key
|
from pynput.keyboard import Key
|
||||||
@ -20,6 +20,7 @@ class Console:
|
|||||||
"""
|
"""
|
||||||
Useful functions for handling with input and output
|
Useful functions for handling with input and output
|
||||||
"""
|
"""
|
||||||
|
colorama.init()
|
||||||
_is_first_write = True
|
_is_first_write = True
|
||||||
|
|
||||||
_background_color: BackgroundColorEnum = BackgroundColorEnum.default
|
_background_color: BackgroundColorEnum = BackgroundColorEnum.default
|
||||||
|
@ -111,7 +111,7 @@ class ProjectSettings(ConfigurationModelABC):
|
|||||||
if ProjectSettingsNameEnum.python_path.value in settings:
|
if ProjectSettingsNameEnum.python_path.value in settings:
|
||||||
path = settings[ProjectSettingsNameEnum.python_path.value]
|
path = settings[ProjectSettingsNameEnum.python_path.value]
|
||||||
if not os.path.isfile(path) or not os.path.islink(path):
|
if not os.path.isfile(path) or not os.path.islink(path):
|
||||||
if path != '':
|
if path != '' and path is not None:
|
||||||
Error.warn(f'{ProjectSettingsNameEnum.python_path.value} not found')
|
Error.warn(f'{ProjectSettingsNameEnum.python_path.value} not found')
|
||||||
|
|
||||||
path = sys.executable
|
path = sys.executable
|
||||||
|
Loading…
Reference in New Issue
Block a user