Move special character check to start script (#92)
Also port print_big_message function to batch
This commit is contained in:
parent
04cae3e5db
commit
eac8450ef7
2 changed files with 20 additions and 12 deletions
10
webui.py
10
webui.py
|
@ -67,16 +67,6 @@ def check_env():
|
|||
|
||||
|
||||
def install_dependencies():
|
||||
# Check for special characters in installation path on Windows
|
||||
if sys.platform.startswith("win"):
|
||||
# punctuation contains: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
from string import punctuation
|
||||
|
||||
# Allow some characters: _-:\/.'"
|
||||
special_characters = punctuation.translate({ord(char): None for char in '_-:\\/.\'"'})
|
||||
if any(char in script_dir for char in special_characters):
|
||||
print_big_message("WARNING: Special characters were detected in the installation path!\n This can cause the installation to fail!")
|
||||
|
||||
# Select your GPU or, choose to run in CPU mode
|
||||
print("What is your GPU")
|
||||
print()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue