diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-21 13:27:23 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-21 13:27:34 +0000 |
commit | f9fe5e5f9d7b7465da75bf8ba470785d2240caf7 (patch) | |
tree | 2672e47a53efe44548bb53d52b125c5a880bcbc5 | |
parent | 4b07984d1b92949311a703cfbb7dad5e96a7fb01 (diff) | |
download | stable-diffusion-webui-gfx803-f9fe5e5f9d7b7465da75bf8ba470785d2240caf7.tar.gz stable-diffusion-webui-gfx803-f9fe5e5f9d7b7465da75bf8ba470785d2240caf7.tar.bz2 stable-diffusion-webui-gfx803-f9fe5e5f9d7b7465da75bf8ba470785d2240caf7.zip |
reworking launch.py: add references to renamed file
-rw-r--r-- | launch.py | 38 | ||||
-rw-r--r-- | modules/launch_utils.py | 14 |
2 files changed, 38 insertions, 14 deletions
diff --git a/launch.py b/launch.py new file mode 100644 index 00000000..b103c8f3 --- /dev/null +++ b/launch.py @@ -0,0 +1,38 @@ +from modules import launch_utils
+
+
+args = launch_utils.args
+python = launch_utils.python
+git = launch_utils.git
+index_url = launch_utils.index_url
+dir_repos = launch_utils.dir_repos
+
+commit_hash = launch_utils.commit_hash
+git_tag = launch_utils.git_tag
+
+run = launch_utils.run
+is_installed = launch_utils.is_installed
+repo_dir = launch_utils.repo_dir
+
+run_pip = launch_utils.run_pip
+check_run_python = launch_utils.check_run_python
+git_clone = launch_utils.git_clone
+git_pull_recursive = launch_utils.git_pull_recursive
+run_extension_installer = launch_utils.run_extension_installer
+prepare_environment = launch_utils.prepare_environment
+configure_for_tests = launch_utils.configure_for_tests
+start = launch_utils.start
+
+
+def main():
+ if not args.skip_prepare_environment:
+ prepare_environment()
+
+ if args.test_server:
+ configure_for_tests()
+
+ start()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 1d504c38..35a52310 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -332,17 +332,3 @@ def start(): webui.api_only()
else:
webui.webui()
-
-
-def main():
- if not args.skip_prepare_environment:
- prepare_environment()
-
- if args.test_server:
- configure_for_tests()
-
- start()
-
-
-if __name__ == "__main__":
- main()
|