Load dot env
This commit is contained in:
parent
b1b855456b
commit
5231e0d472
104
launch.py
104
launch.py
@ -1,51 +1,53 @@
|
|||||||
from modules import launch_utils
|
from modules import launch_utils
|
||||||
|
from dotenv import load_dotenv
|
||||||
args = launch_utils.args
|
|
||||||
python = launch_utils.python
|
load_dotenv()
|
||||||
git = launch_utils.git
|
args = launch_utils.args
|
||||||
index_url = launch_utils.index_url
|
python = launch_utils.python
|
||||||
dir_repos = launch_utils.dir_repos
|
git = launch_utils.git
|
||||||
|
index_url = launch_utils.index_url
|
||||||
commit_hash = launch_utils.commit_hash
|
dir_repos = launch_utils.dir_repos
|
||||||
git_tag = launch_utils.git_tag
|
|
||||||
|
commit_hash = launch_utils.commit_hash
|
||||||
run = launch_utils.run
|
git_tag = launch_utils.git_tag
|
||||||
is_installed = launch_utils.is_installed
|
|
||||||
repo_dir = launch_utils.repo_dir
|
run = launch_utils.run
|
||||||
|
is_installed = launch_utils.is_installed
|
||||||
run_pip = launch_utils.run_pip
|
repo_dir = launch_utils.repo_dir
|
||||||
check_run_python = launch_utils.check_run_python
|
|
||||||
git_clone = launch_utils.git_clone
|
run_pip = launch_utils.run_pip
|
||||||
git_pull_recursive = launch_utils.git_pull_recursive
|
check_run_python = launch_utils.check_run_python
|
||||||
list_extensions = launch_utils.list_extensions
|
git_clone = launch_utils.git_clone
|
||||||
run_extension_installer = launch_utils.run_extension_installer
|
git_pull_recursive = launch_utils.git_pull_recursive
|
||||||
prepare_environment = launch_utils.prepare_environment
|
list_extensions = launch_utils.list_extensions
|
||||||
configure_for_tests = launch_utils.configure_for_tests
|
run_extension_installer = launch_utils.run_extension_installer
|
||||||
start = launch_utils.start
|
prepare_environment = launch_utils.prepare_environment
|
||||||
|
configure_for_tests = launch_utils.configure_for_tests
|
||||||
|
start = launch_utils.start
|
||||||
def main():
|
|
||||||
if args.dump_sysinfo:
|
|
||||||
filename = launch_utils.dump_sysinfo()
|
def main():
|
||||||
|
if args.dump_sysinfo:
|
||||||
print(f"Sysinfo saved as {filename}. Exiting...")
|
filename = launch_utils.dump_sysinfo()
|
||||||
|
|
||||||
exit(0)
|
print(f"Sysinfo saved as {filename}. Exiting...")
|
||||||
|
|
||||||
launch_utils.startup_timer.record("initial startup")
|
exit(0)
|
||||||
|
|
||||||
with launch_utils.startup_timer.subcategory("prepare environment"):
|
launch_utils.startup_timer.record("initial startup")
|
||||||
if not args.skip_prepare_environment:
|
|
||||||
prepare_environment()
|
with launch_utils.startup_timer.subcategory("prepare environment"):
|
||||||
|
if not args.skip_prepare_environment:
|
||||||
if args.test_server:
|
prepare_environment()
|
||||||
configure_for_tests()
|
|
||||||
|
if args.test_server:
|
||||||
if args.forge_ref_a1111_home:
|
configure_for_tests()
|
||||||
launch_utils.configure_forge_reference_checkout(args.forge_ref_a1111_home)
|
|
||||||
|
if args.forge_ref_a1111_home:
|
||||||
start()
|
launch_utils.configure_forge_reference_checkout(args.forge_ref_a1111_home)
|
||||||
|
|
||||||
|
start()
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user