aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2023-01-10 09:46:35 +0000
committerVladimir Repin <32306715+mezotaken@users.noreply.github.com>2023-01-10 09:47:52 +0000
commit76a21b9626b7556638db188c157e3e8036803326 (patch)
treed8d01271be98292601e4d0ab5ea579fcc2601d8a /launch.py
parent7ec275fae799f19cdb1756412ae75ca6bfe251cd (diff)
downloadstable-diffusion-webui-gfx803-76a21b9626b7556638db188c157e3e8036803326.tar.gz
stable-diffusion-webui-gfx803-76a21b9626b7556638db188c157e3e8036803326.tar.bz2
stable-diffusion-webui-gfx803-76a21b9626b7556638db188c157e3e8036803326.zip
clear envvar, add assertion
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/launch.py b/launch.py
index 49b91b1f..bcbb792c 100644
--- a/launch.py
+++ b/launch.py
@@ -282,6 +282,7 @@ def tests(test_dir):
print(f"Launching Web UI in another process for testing with arguments: {' '.join(sys.argv[1:])}")
+ os.environ['COMMANDLINE_ARGS'] = ""
with open('test/stdout.txt', "w", encoding="utf8") as stdout, open('test/stderr.txt', "w", encoding="utf8") as stderr:
proc = subprocess.Popen([sys.executable, *sys.argv], stdout=stdout, stderr=stderr)