f
This commit is contained in:
@@ -1127,6 +1127,10 @@ def main() -> int:
|
|||||||
args.install_editable = True
|
args.install_editable = True
|
||||||
args.no_playwright = False
|
args.no_playwright = False
|
||||||
elif sel == "extras_hydrus":
|
elif sel == "extras_hydrus":
|
||||||
|
install_location = _prompt_hydrus_install_location()
|
||||||
|
if install_location is None:
|
||||||
|
return 0
|
||||||
|
install_root, install_dest = install_location
|
||||||
# Choice 2 is for installing HydrusNetwork standalone/independently.
|
# Choice 2 is for installing HydrusNetwork standalone/independently.
|
||||||
# We preferentially use the local script if already in a repo.
|
# We preferentially use the local script if already in a repo.
|
||||||
hydrus_script = None
|
hydrus_script = None
|
||||||
@@ -1136,8 +1140,6 @@ def main() -> int:
|
|||||||
if not hydrus_script or not hydrus_script.exists():
|
if not hydrus_script or not hydrus_script.exists():
|
||||||
# If truly not in a repo (Web Installer), we don't want to install
|
# If truly not in a repo (Web Installer), we don't want to install
|
||||||
# Medios-Macina permanently. We'll use a temporary clone to get the installer.
|
# Medios-Macina permanently. We'll use a temporary clone to get the installer.
|
||||||
print("\n[Standalone Hydrus Installation]")
|
|
||||||
print("Downloading the Hydrus installation helper...")
|
|
||||||
try:
|
try:
|
||||||
import tempfile
|
import tempfile
|
||||||
# Create a temporary directory that persists for this run
|
# Create a temporary directory that persists for this run
|
||||||
@@ -1154,11 +1156,6 @@ def main() -> int:
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
if hydrus_script.exists():
|
if hydrus_script.exists():
|
||||||
install_location = _prompt_hydrus_install_location()
|
|
||||||
if install_location is None:
|
|
||||||
return 0
|
|
||||||
install_root, install_dest = install_location
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Clear out project-venv related env vars to prevent auto-reexec
|
# Clear out project-venv related env vars to prevent auto-reexec
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
|||||||
Reference in New Issue
Block a user