Remove OOBABOOGA_FLAGS
This commit is contained in:
parent
ccfc919016
commit
967dda17a0
1 changed files with 5 additions and 11 deletions
6
webui.py
6
webui.py
|
@ -14,12 +14,6 @@ conda_env_path = os.path.join(script_dir, "installer_files", "env")
|
||||||
# os.environ["HCC_AMDGPU_TARGET"] = 'gfx1030'
|
# os.environ["HCC_AMDGPU_TARGET"] = 'gfx1030'
|
||||||
|
|
||||||
# Command-line flags
|
# Command-line flags
|
||||||
if "OOBABOOGA_FLAGS" in os.environ:
|
|
||||||
CMD_FLAGS = os.environ["OOBABOOGA_FLAGS"]
|
|
||||||
print("The following flags have been taken from the environment variable 'OOBABOOGA_FLAGS':")
|
|
||||||
print(CMD_FLAGS)
|
|
||||||
print("To use the CMD_FLAGS Inside webui.py, unset 'OOBABOOGA_FLAGS'.\n")
|
|
||||||
else:
|
|
||||||
cmd_flags_path = os.path.join(script_dir, "CMD_FLAGS.txt")
|
cmd_flags_path = os.path.join(script_dir, "CMD_FLAGS.txt")
|
||||||
if os.path.exists(cmd_flags_path):
|
if os.path.exists(cmd_flags_path):
|
||||||
with open(cmd_flags_path, 'r') as f:
|
with open(cmd_flags_path, 'r') as f:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue